From 9cfe3dfa3b8bd8725c618d50646fe04d50ec4568 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 29 Oct 2021 00:47:20 +0900 Subject: [PATCH] null --- src/client/init.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/init.ts b/src/client/init.ts index 37bfbc4f6a..2ba9b9ff04 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -92,8 +92,8 @@ document.addEventListener('touchend', () => {}, { passive: true }); // 一斉リロード reloadChannel.addEventListener('message', path => { - if (path === 'reload') location.reload(); - else location.href = path; + if (path !== null) location.href = path; + else location.reload(); }); //#region SEE: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/