From 4522c752ee95aa943d72365cb6ebd80cc1df35c8 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 21 Feb 2021 14:45:20 +0900 Subject: [PATCH] fix --- 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 c50650452d..05ce2db829 100644 --- a/src/client/scripts/unison-reload.ts +++ b/src/client/scripts/unison-reload.ts @@ -4,12 +4,12 @@ import { BroadcastChannel } from 'broadcast-channel'; export const reloadChannel = new BroadcastChannel('reload'); // BroadcastChannelを用いて、クライアントが一斉にreloadするようにします。 -export function unisonReload(redirectToRoot?: boolean) { +export function unisonReload(redirectToRoot: boolean = false) { reloadChannel.postMessage(!!redirectToRoot); reload(); } -export function reload(redirectToRoot?: boolean) { +export function reload(redirectToRoot: boolean = false) { if (redirectToRoot) { location.href = '/'; } else {