Browse Source

fix setting new mode when unset

dev
Kyle Mitchell 2 years ago
parent
commit
0588da46bf
  1. 2
      js/index.js
  2. 2
      js/options.js

2
js/index.js

@ -34,7 +34,7 @@ function restore_options() {
}
} else {
result.mode = "light"
browser.storage.sync.set(mode)
browser.storage.sync.set({mode:result.mode})
}
document.head.appendChild(style)
}

2
js/options.js

@ -45,7 +45,7 @@ function restore_options() {
}
} else {
result.mode = "light"
browser.storage.sync.set(mode)
browser.storage.sync.set({mode:result.mode})
}
document.head.appendChild(style)
}

Loading…
Cancel
Save