Fix removing loading screen without loaded content

This commit is contained in:
shortcutme 2020-01-04 16:54:13 +01:00
parent c1ad7914f1
commit 76e4b75c2d
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 1 deletions

View File

@ -680,11 +680,12 @@ class Wrapper
setSizeLimit: (size_limit, reload=true) =>
@log "setSizeLimit: #{size_limit}, reload: #{reload}"
@inner_loaded = false # Inner frame not loaded, just a 404 page displayed
@ws.cmd "siteSetLimit", [size_limit], (res) =>
if res != "ok"
return false
@loading.printLine res
@inner_loaded = false # Inner frame not loaded, just a 404 page displayed
@inner_loaded = false
if reload then @reloadIframe()
return false