From 27abe25a572bccbf5f23dfb6bf018e90079741cb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 May 2024 21:01:20 +0530 Subject: [PATCH] cleanup previous PR --- src/pyj/read_book/view.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 439da33b37..8ee5504674 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -47,7 +47,7 @@ from read_book.toc import get_current_toc_nodes, update_visible_toc_nodes from read_book.touch import set_left_margin_handler, set_right_margin_handler from session import get_device_uuid, get_interface_data from utils import ( - default_context_menu_should_be_allowed, html_escape, is_ios, parse_url_params, + default_context_menu_should_be_allowed, html_escape, parse_url_params, safe_set_inner_html, username_key ) @@ -288,7 +288,7 @@ class View: } iframe, self.iframe_wrapper = create_wrapped_iframe(handlers, _('Bootstrapping book reader...'), entry_point, iframe_kw) container.appendChild( - E.div(style='max-height: 100dvh; width: 100vw; height: 100dvh; overflow: hidden; display: flex; align-items: stretch', # container for horizontally aligned panels + E.div(style='max-height: 100dvh; width: 100dvw; height: 100dvh; overflow: hidden; display: flex; align-items: stretch', # container for horizontally aligned panels oncontextmenu=def (ev): if not default_context_menu_should_be_allowed(ev): ev.preventDefault()