Rename wrapper onLoad to onPageLoad

This commit is contained in:
shortcutme 2018-02-21 03:05:02 +01:00
parent fd56ddaa54
commit a1a2434d98
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -25,7 +25,7 @@ class Wrapper
@address = null
@opener_tested = false
window.onload = @onLoad # On iframe loaded
window.onload = @onPageLoad # On iframe loaded
window.onhashchange = (e) => # On hash change
@log "Hashchange", window.location.hash
if window.location.hash
@ -387,7 +387,7 @@ class Wrapper
# Iframe loaded
onLoad: (e) =>
onPageLoad: (e) =>
@inner_loaded = true
if not @inner_ready then @sendInner {"cmd": "wrapperReady"} # Inner frame loaded before wrapper
#if not @site_error then @loading.hideScreen() # Hide loading screen