15 lines
514 B
JavaScript
15 lines
514 B
JavaScript
|
|
||
|
// Commented out because chrome does things differently and I don't want to make 2 implementations.
|
||
|
// getStatus();
|
||
|
// function getStatus() {
|
||
|
// browser.tabs.query({ active: true, currentWindow: true }).then((tabs) => {
|
||
|
// browser.tabs.sendMessage(tabs[0].id, {
|
||
|
// command: "DSMstatus"
|
||
|
// });
|
||
|
// });
|
||
|
// }
|
||
|
// browser.runtime.onMessage.addListener((message) => {
|
||
|
// if (message.command === "DSMstatusReport") {
|
||
|
// document.getElementById("status").textContent = message.status;
|
||
|
// }
|
||
|
// });
|