add dashboard.xpi for directplugin installation

This commit is contained in:
viehlieb 2022-03-16 11:49:33 +01:00
parent 07f663abb0
commit 3ea78260b6
5 changed files with 46 additions and 28 deletions

View file

@ -1,5 +1,8 @@
"use strict";
//Simple background script that seds a message to content script
// code mainly from: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/sendMessage
function onError(error) {
console.error(`Error: ${error}`);
}
@ -8,7 +11,7 @@ function sendMessageToTabs(tabs) {
for (let tab of tabs) {
browser.tabs.sendMessage(
tab.id,
{overlay: "display"}
{trigger: "extension click"}
).then(response => {
}).catch(onError);
}