"use strict"; const statusEl = document.getElementById("status"); const manage = document.getElementById("manage"); browser.runtime.sendMessage({ type: "status" }).then((info) => { if (info && info.hostUp) { statusEl.textContent = "Ready for agents and scripts while Firefox is open."; } else { statusEl.textContent = "You can issue and revoke secrets here."; } }); manage.addEventListener("click", () => { browser.runtime.openOptionsPage(); });