Open sidebar with location hash

This commit is contained in:
shortcutme 2019-09-02 14:17:35 +02:00
parent f999f167b1
commit 76bc9fcddf
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 11 additions and 15 deletions

View file

@ -23,9 +23,9 @@ class Sidebar extends Class
@original_set_site_info = @wrapper.setSiteInfo # We going to override this, save the original
# Start in opened state for debugging
if false
if window.top.location.hash == "#ZeroNet:OpenSidebar"
@startDrag()
@moved()
@moved("x")
@fixbutton_targetx = @fixbutton_initx - @width
@stopDrag()