12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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/
if (typeof(chrome) === "object") {
var browser = chrome;
}
function createNode (sType, oAttr, oDataset=null) {
try {
let xNode = document.createElement(sType);
|
|
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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/
if (typeof(browser) !== "object") {
var browser = chrome;
}
function createNode (sType, oAttr, oDataset=null) {
try {
let xNode = document.createElement(sType);
|