explicit falsey checks for some persistent vars (no practical difference)

This commit is contained in:
mappu 2017-02-06 16:49:37 +13:00
parent 95d56dbca2
commit c4e37bf47d

View File

@ -365,7 +365,7 @@ var submit = function() {
}
if (hub_pass === SENTINEL_PASSWORD) {
// 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) {
hub_pass = cache.substr(cache.indexOf(":") + 1);
}
@ -1009,9 +1009,9 @@ window.onload = function() {
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) {
// prompt for permissions
desktop_notifications_onEnable();