Differences From Artifact [0b754e6438]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [0e89b6ede9] at 2017-09-26 09:03:31 on branch trunk — [fx] WebExt: adaptation to Chrome (browser=chrome) (user: olr, size: 4969) [annotate] [blame] [check-ins using]
To Artifact [70b0a5f3fd]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [939c8db8c7] at 2017-09-26 11:36:04 on branch trunk — [fx] WebExt: adaptation to Chrome (load options) (user: olr, size: 5010) [annotate] [blame] [check-ins using]
| ︙ | |||
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + + |
function showError (e) {
console.error(e.fileName + "\n" + e.name + "\nline: " + e.lineNumber + "\n" + e.message);
}
// Chrome don’t follow the W3C specification:
// https://browserext.github.io/browserext/
let bChrome = false;
if (typeof(browser) !== "object") {
var browser = chrome;
bChrome = true;
}
function createNode (sType, oAttr, oDataset=null) {
try {
let xNode = document.createElement(sType);
Object.assign(xNode, oAttr);
|
| ︙ |