add dashboard.xpi for directplugin installation
This commit is contained in:
parent
07f663abb0
commit
3ea78260b6
5 changed files with 46 additions and 28 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue