Browse Source

fix setting new mode when unset

dev
Kyle 1 year ago
parent
commit
0588da46bf
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      js/index.js
  2. +1
    -1
      js/options.js

+ 1
- 1
js/index.js View File

@@ -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)
}


+ 1
- 1
js/options.js View File

@@ -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