fix lint
This commit is contained in:
parent
f25963e2c2
commit
7f534a41a6
19 changed files with 32 additions and 32 deletions
|
|
@ -35,6 +35,6 @@ export async function reloadAsk(opts: {
|
|||
if (opts.unison) {
|
||||
unisonReload();
|
||||
} else {
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ export const reloadChannel = new BroadcastChannel<string | null>('reload');
|
|||
export function unisonReload(path?: string) {
|
||||
if (path !== undefined) {
|
||||
reloadChannel.postMessage(path);
|
||||
location.href = path;
|
||||
window.location.href = path;
|
||||
} else {
|
||||
reloadChannel.postMessage(null);
|
||||
location.reload();
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue