summaryrefslogtreecommitdiff
path: root/src/client/init.ts
diff options
context:
space:
mode:
authortamaina <tamaina@hotmail.co.jp>2021-11-05 00:09:13 +0900
committerGitHub <noreply@github.com>2021-11-05 00:09:13 +0900
commite2862ed097a7de54a1a617f55dffee52a00010fc (patch)
treeeed0249ced2af7bf85688649d9f6a1a88b9be772 /src/client/init.ts
parentrefactor: Introduce list of MFM Functions (#7882) (diff)
downloadmisskey-e2862ed097a7de54a1a617f55dffee52a00010fc.tar.gz
misskey-e2862ed097a7de54a1a617f55dffee52a00010fc.tar.bz2
misskey-e2862ed097a7de54a1a617f55dffee52a00010fc.zip
enhane: 完全ログアウト時にすべてのタブがウェルカムページへ移動するように (#7928)
* enhane: unison-reloadに指定したパスに移動できるように * null * null * null * add comments
Diffstat (limited to 'src/client/init.ts')
-rw-r--r--src/client/init.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/init.ts b/src/client/init.ts
index 654e176398..81d17f0d27 100644
--- a/src/client/init.ts
+++ b/src/client/init.ts
@@ -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: いつの日にか消したい