use an absolute url for chrome.tabs.executeScript (which works on both Firefox and Chrome)

This commit is contained in:
Luca Greco
2016-01-06 19:46:51 +01:00
parent 8e2148f514
commit 491918a279

View File

@@ -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) {