Files
bookmarks-api/extension/popup.js
T

17 lines
465 B
JavaScript

"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();
});