From ba458a612610512e28b65bafcf74177ddc77bbbe Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 21 Nov 2021 23:56:20 -0800 Subject: Improve menu loading when going back --- app/src/web/ts/menu.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'app/src/web/ts/menu.ts') diff --git a/app/src/web/ts/menu.ts b/app/src/web/ts/menu.ts index a288ba07..5b3e6fa9 100644 --- a/app/src/web/ts/menu.ts +++ b/app/src/web/ts/menu.ts @@ -1,4 +1,4 @@ -// Click menu and move contents to main view +// Click menu after delay and notify (function () { const viewport = document.querySelector("#viewport"); const root = document.querySelector("#root"); @@ -20,12 +20,6 @@ return } - // menu container - const bookmarkFlyout = document.querySelector('#bookmarks_flyout'); - if (bookmarkFlyout instanceof HTMLElement) { - bookmarkFlyout.style.marginTop = "0"; - } - // Js handling is a bit slow so we need to wait setTimeout(() => { menuA.click(); @@ -34,5 +28,5 @@ setTimeout(() => { Frost.emit(0); }, 100); - }, 200); + }, 500); }).call(undefined); -- cgit v1.2.3