Fix what I assume is a copy/paste oversight

This commit is contained in:
Michael Ziminsky (Z) 2019-12-22 22:26:07 -07:00
parent b13f5d6a0c
commit 281592bdaa

View File

@ -133,7 +133,7 @@ def margin_elem(sd, which, id, onclick, oncontextmenu):
if onclick: if onclick:
ans.addEventListener('click', onclick) ans.addEventListener('click', onclick)
if oncontextmenu: if oncontextmenu:
ans.addEventListener('contextmenu', onclick) ans.addEventListener('contextmenu', oncontextmenu)
if is_ios and which is 'margin_bottom' and not window.navigator.standalone and not /CriOS\//.test(window.navigator.userAgent): 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 # 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 # go fullscreen, so to make the bottom bar visible we add a margin to