579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
|
}
}
catch (e) {
showError(e);
}
});
// The API script must be injected this way to be callable by the page
let xScriptGrammalecteAPI = document.createElement("script");
xScriptGrammalecteAPI.src = browser.runtime.getURL("content_scripts/api.js");
document.documentElement.appendChild(xScriptGrammalecteAPI);
}
/*
|
|
>
>
>
|
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
|
}
}
catch (e) {
showError(e);
}
});
// The API script must be injected this way to be callable by the page.
// Note: Firefox offers another way to give access to webpage, via “user scripts”
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/userScripts
// (Firefox only feature for now)
let xScriptGrammalecteAPI = document.createElement("script");
xScriptGrammalecteAPI.src = browser.runtime.getURL("content_scripts/api.js");
document.documentElement.appendChild(xScriptGrammalecteAPI);
}
/*
|