WORK IN PROGRESS

This commit is contained in:
tamaina
2021-02-21 14:35:54 +09:00
parent b040c4da2f
commit 852e4db958
5 changed files with 21 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ import { search } from '@/scripts/search';
import { isMobile } from '@/scripts/is-mobile';
import { getThemes } from '@/theme-store';
import { initializeSw } from '@/scripts/initialize-sw';
import { reloadChannel } from '@/scripts/unison-reload';
import { reload, reloadChannel } from '@/scripts/unison-reload';
import { deleteLoginId } from '@/scripts/login-id';
import { getAccountFromId } from '@/scripts/get-account-from-id';
@@ -120,7 +120,7 @@ if (defaultStore.state.reportError && !_DEV_) {
document.addEventListener('touchend', () => {}, { passive: true });
// 一斉リロード
reloadChannel.addEventListener('message', () => location.reload());
reloadChannel.addEventListener('message', reload);
//#region SEE: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
// TODO: いつの日にか消したい