Browse Source

save all settings on first run and on mode change

dev
BuildTools 4 years ago
parent
commit
e05437a4d7
  1. 3
      js/options.js

3
js/options.js

@ -33,6 +33,7 @@ function restore_options() {
} else {
mode = "light"
browser.storage.sync.set({mode:"light"})
save_options()
}
})
browser.storage.sync.get("links", function(result){
@ -63,6 +64,7 @@ function change_mode() {
input_colors[i].value = "#323234"
}
}
save_options()
break
case "dark":
document.body.classList.remove('dark')
@ -73,6 +75,7 @@ function change_mode() {
input_colors[i].value = "#cfcfcf"
}
}
save_options()
break
default:
break

Loading…
Cancel
Save