Browse Source

save all settings on first run and on mode change

dev
BuildTools 3 years ago
parent
commit
e05437a4d7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      js/options.js

+ 3
- 0
js/options.js View File

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