Open console with #ZeroNet:Console hash in url

This commit is contained in:
shortcutme 2019-10-06 03:07:14 +02:00
parent 15fca6bd12
commit fe432ad843
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -11,7 +11,11 @@ class Console extends Class
else
handleMessageWebsocket_original(message)
if window.top.location.hash == "#console"
$(window).on "hashchange", =>
if window.top.location.hash == "#ZeroNet:Console"
@open()
if window.top.location.hash == "#ZeroNet:Console"
setTimeout (=> @open()), 10
createHtmltag: ->