17 lines
473 B
JavaScript
17 lines
473 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 = "Local script access is on.";
|
|
} else {
|
|
statusEl.textContent = "You can still issue secrets. Local script access needs the native host.";
|
|
}
|
|
});
|
|
|
|
manage.addEventListener("click", () => {
|
|
browser.runtime.openOptionsPage();
|
|
});
|