diff --git a/popup/popup.js b/popup/popup.js index dfc9126..1be2f0c 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -22,6 +22,11 @@ if (changes.__frequency) document.getElementById("frequency_info").innerText = changes.__frequency.newValue; }); + // update status + chrome.storage.onChanged.addListener((changes, area) => { + if (changes.__status) + document.getElementById("status").innerText = changes.__status.newValue; + }); // activate checkbox document.getElementById("activate").addEventListener("change", async e => {