Fix undefined in title

This commit is contained in:
shortcutme 2018-10-20 02:22:29 +02:00
parent 5414691f1f
commit 7f46767411
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -470,7 +470,7 @@ class Wrapper
if res == "ok" if res == "ok"
@notifications.add("size_limit", "done", "Site storage limit modified!", 5000) @notifications.add("size_limit", "done", "Site storage limit modified!", 5000)
if site_info.content if site_info.content?.title?
window.document.title = site_info.content.title + " - ZeroNet" window.document.title = site_info.content.title + " - ZeroNet"
@log "Setting title to", window.document.title @log "Setting title to", window.document.title