Redirect to welcome page when sign out

This commit is contained in:
tamaina
2021-08-24 14:18:19 +09:00
parent c3b55b6849
commit b67d3f88b6
3 changed files with 14 additions and 6 deletions

View File

@@ -89,7 +89,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()
});
//#region SEE: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
// TODO: いつの日にか消したい