Skip to content

Commit 78f769c

Browse files
author
Emmanouil Konstantinidis
committed
Allow settings to be false - boolean
1 parent c0ad7ed commit 78f769c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/js/stores/settings.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@ var SettingsStore = Reflux.createStore({
2222
settings = JSON.parse(settings);
2323
}
2424

25-
if (!settings.participating) {
25+
if (typeof settings.participating !== 'boolean') {
2626
settings.participating = false;
2727
}
28-
if (!settings.playSound) {
28+
29+
if (typeof settings.playSound !== 'boolean') {
2930
settings.playSound = true;
3031
}
31-
if (!settings.showNotifications) {
32+
33+
if (typeof settings.showNotifications !== 'boolean') {
3234
settings.showNotifications = true;
3335
}
34-
if (!settings.openAtStartup) {
36+
37+
if (typeof settings.openAtStartup !== 'boolean') {
3538
settings.openAtStartup = false;
3639
}
3740

0 commit comments

Comments
 (0)