Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#206: fixed default settings were not properly set
Browse files Browse the repository at this point in the history
All boolean settings were set to “off”.
  • Loading branch information
hugbug committed May 26, 2016
1 parent a8377ab commit 7fb3e9d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webui/index.js
Expand Up @@ -107,13 +107,13 @@ var UISettings = (new function($)
this.load = function()
{
this.refreshInterval = parseFloat(this.read('RefreshInterval', this.refreshInterval));
this.refreshAnimation = this.read('RefreshAnimation', this.refreshAnimation) == 'true';
this.activityAnimation = this.read('ActivityAnimation', this.activityAnimation) == 'true';
this.slideAnimation = this.read('SlideAnimation', this.slideAnimation) == 'true';
this.setFocus = this.read('SetFocus', this.setFocus) == 'true';
this.showNotifications = this.read('ShowNotifications', this.showNotifications) == 'true';
this.dupeBadges = this.read('DupeBadges', this.dupeBadges) == 'true';
this.rowSelect = this.read('RowSelect', this.rowSelect) == 'true';
this.refreshAnimation = this.read('RefreshAnimation', this.refreshAnimation) === 'true';
this.activityAnimation = this.read('ActivityAnimation', this.activityAnimation) === 'true';
this.slideAnimation = this.read('SlideAnimation', this.slideAnimation) === 'true';
this.setFocus = this.read('SetFocus', this.setFocus) === 'true';
this.showNotifications = this.read('ShowNotifications', this.showNotifications) === 'true';
this.dupeBadges = this.read('DupeBadges', this.dupeBadges) === 'true';
this.rowSelect = this.read('RowSelect', this.rowSelect) === 'true';
this.windowTitle = this.read('WindowTitle', this.windowTitle);
this.refreshRetries = parseFloat(this.read('RefreshRetries', this.refreshRetries));
}
Expand All @@ -137,7 +137,7 @@ var UISettings = (new function($)
var v = localStorage.getItem(key);
if (v === null || v === '')
{
return def;
return def.toString();
}
else
{
Expand Down

0 comments on commit 7fb3e9d

Please sign in to comment.