enhane: 完全ログアウト時にすべてのタブがウェルカムページへ移動するように (#7928)
* enhane: unison-reloadに指定したパスに移動できるように * null * null * null * add comments
This commit is contained in:
parent
1c38c7010d
commit
e2862ed097
3 changed files with 17 additions and 7 deletions
|
|
@ -93,7 +93,10 @@ if (defaultStore.state.reportError && !_DEV_) {
|
|||
document.addEventListener('touchend', () => {}, { passive: true });
|
||||
|
||||
// 一斉リロード
|
||||
reloadChannel.addEventListener('message', () => location.reload());
|
||||
reloadChannel.addEventListener('message', path => {
|
||||
if (path !== null) location.href = path;
|
||||
else location.reload();
|
||||
});
|
||||
|
||||
//#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