explicit falsey checks for some persistent vars (no practical difference)
This commit is contained in:
parent
95d56dbca2
commit
c4e37bf47d
@ -365,7 +365,7 @@ var submit = function() {
|
|||||||
}
|
}
|
||||||
if (hub_pass === SENTINEL_PASSWORD) {
|
if (hub_pass === SENTINEL_PASSWORD) {
|
||||||
// Probably not a real password. Attempt to load a better one from the saved state
|
// Probably not a real password. Attempt to load a better one from the saved state
|
||||||
var cache = persistence_get("login");
|
var cache = persistence_get("login", "");
|
||||||
if (cache.indexOf(":") != -1) {
|
if (cache.indexOf(":") != -1) {
|
||||||
hub_pass = cache.substr(cache.indexOf(":") + 1);
|
hub_pass = cache.substr(cache.indexOf(":") + 1);
|
||||||
}
|
}
|
||||||
@ -1009,9 +1009,9 @@ window.onload = function() {
|
|||||||
|
|
||||||
timestamp_format_index = persistence_get("timestamps", 0);
|
timestamp_format_index = persistence_get("timestamps", 0);
|
||||||
|
|
||||||
should_warn_on_close = persistence_get("warnonclose");
|
should_warn_on_close = persistence_get("warnonclose", false);
|
||||||
|
|
||||||
desktop_notifications_enabled = persistence_get("popups");
|
desktop_notifications_enabled = persistence_get("popups", false);
|
||||||
if (desktop_notifications_enabled) {
|
if (desktop_notifications_enabled) {
|
||||||
// prompt for permissions
|
// prompt for permissions
|
||||||
desktop_notifications_onEnable();
|
desktop_notifications_onEnable();
|
||||||
|
Loading…
Reference in New Issue
Block a user