This commit is contained in:
Kovid Goyal 2025-02-08 09:16:39 +05:30
parent 88f5310317
commit 32059852d2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -163,8 +163,7 @@ def show_controls_help():
def body_font_size():
ans = body_font_size.ans
dpr = body_font_size.dpr
if not ans or window.devicePixelRatio is not dpr:
if not ans or window.devicePixelRatio is not body_font_size.dpr:
body_font_size.dpr = window.devicePixelRatio
q = window.getComputedStyle(document.body).fontSize
if q and q.endsWith('px'):