From cb3aa3927c9a49100e3de52ddbe82754fe7c9378 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 29 Oct 2021 00:39:42 +0900 Subject: [PATCH] null --- src/client/scripts/unison-reload.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/scripts/unison-reload.ts b/src/client/scripts/unison-reload.ts index 745a0a7a1d..59af584c1b 100644 --- a/src/client/scripts/unison-reload.ts +++ b/src/client/scripts/unison-reload.ts @@ -1,7 +1,7 @@ // SafariがBroadcastChannel未実装なのでライブラリを使う import { BroadcastChannel } from 'broadcast-channel'; -export const reloadChannel = new BroadcastChannel('reload'); +export const reloadChannel = new BroadcastChannel('reload'); // BroadcastChannelを用いて、クライアントが一斉にreloadするようにします。 export function unisonReload(path?: string) { @@ -9,7 +9,7 @@ export function unisonReload(path?: string) { reloadChannel.postMessage(path); location.href = path; } else { - reloadChannel.postMessage('reload'); + reloadChannel.postMessage(null); location.reload(); } }