ressurect broadcast-channel

This commit is contained in:
tamaina
2022-04-28 02:57:59 +09:00
parent f9bae60357
commit 36f9fb99ae
4 changed files with 88 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
export const reloadChannel = new BroadcastChannel('reload'); // string | null
import { BroadcastChannel } from 'broadcast-channel';
export const reloadChannel = new BroadcastChannel<string | null>('reload');
// BroadcastChannelを用いて、クライアントが一斉にreloadするようにします。
export function unisonReload(path?: string) {