mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
use an absolute url for chrome.tabs.executeScript (which works on both Firefox and Chrome)
This commit is contained in:
@@ -18,9 +18,9 @@ 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