From b911fa4c8e95d249d946d144fbc8d543c7533aa8 Mon Sep 17 00:00:00 2001 From: radonmiser <61794107+radonmiser@users.noreply.github.com> Date: Fri, 24 May 2024 22:58:02 +0800 Subject: [PATCH] remove ios hack --- src/pyj/read_book/view.pyj | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 54bab2c986..439da33b37 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -191,12 +191,6 @@ def margin_elem(sd, which, id, onclick, oncontextmenu): ans.addEventListener('click', onclick) if oncontextmenu: ans.addEventListener('contextmenu', oncontextmenu) - if is_ios and which is 'margin_bottom' and not window.navigator.standalone and not /CriOS\//.test(window.navigator.userAgent): - # On iOS Safari 100vh includes the size of the navbar and there is no way to - # go fullscreen, so to make the bottom bar visible we add a margin to - # the bottom bar. CriOS is for Chrome on iOS. And in standalone - # (web-app mode) there is no nav bar. - ans.style.marginBottom = '25px' return ans