enhane: unison-reloadに指定したパスに移動できるように
This commit is contained in:
parent
ddd931a0a3
commit
56386b74d0
3 changed files with 14 additions and 6 deletions
|
|
@ -91,7 +91,10 @@ if (defaultStore.state.reportError && !_DEV_) {
|
|||
document.addEventListener('touchend', () => {}, { passive: true });
|
||||
|
||||
// 一斉リロード
|
||||
reloadChannel.addEventListener('message', () => location.reload());
|
||||
reloadChannel.addEventListener('message', path => {
|
||||
if (path === 'reload') location.reload();
|
||||
else location.href = path;
|
||||
});
|
||||
|
||||
//#region SEE: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
|
||||
// TODO: いつの日にか消したい
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue