mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
changed to use activeTab, and workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1236500
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
},
|
||||
|
||||
"permissions": [
|
||||
"http://*/*",
|
||||
"https://*/*"
|
||||
"activeTab"
|
||||
],
|
||||
|
||||
"browser_action": {
|
||||
|
||||
@@ -20,7 +20,7 @@ document.addEventListener("click", function(e) {
|
||||
var chosenBeast = e.target.textContent;
|
||||
|
||||
chrome.tabs.executeScript(null, {
|
||||
file: "content_scripts/beastify.js"
|
||||
file: "../content_scripts/beastify.js"
|
||||
});
|
||||
|
||||
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
|
||||
|
||||
Reference in New Issue
Block a user