sprinkle some ✨logging✨
This commit is contained in:
parent
561cd76b2c
commit
b6466c03e7
@ -52,6 +52,7 @@ async function saveOptions(ev) {
|
|||||||
bday: bDay,
|
bday: bDay,
|
||||||
autocontinue: autoContinue
|
autocontinue: autoContinue
|
||||||
};
|
};
|
||||||
|
console.log("saving", options);
|
||||||
browser.storage.sync.set(options).then(() => {
|
browser.storage.sync.set(options).then(() => {
|
||||||
document.querySelector('#success').textContent = "✔";
|
document.querySelector('#success').textContent = "✔";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -66,7 +67,7 @@ async function restoreOptions() {
|
|||||||
// document.querySelector("#managed-colour").innerText = res.colour;
|
// document.querySelector("#managed-colour").innerText = res.colour;
|
||||||
|
|
||||||
let settings = await browser.storage.sync.get();
|
let settings = await browser.storage.sync.get();
|
||||||
console.log(settings);
|
console.log("restoring", settings);
|
||||||
document.querySelector("#bcnum").value = settings.bcnum || "";
|
document.querySelector("#bcnum").value = settings.bcnum || "";
|
||||||
document.querySelector("#birthday").value = settings.bday || "";
|
document.querySelector("#birthday").value = settings.bday || "";
|
||||||
document.querySelector("#autocontinue").checked = settings.autocontinue || false;
|
document.querySelector("#autocontinue").checked = settings.autocontinue || false;
|
||||||
|
Loading…
Reference in New Issue
Block a user