Differences From Artifact [f45d12f413]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [b652ab4e9d] at 2018-10-19 23:18:44 on branch shadowdom — [fx] Don't auto load CSS - Ajuste time for autoheigth (user: IllusionPerdu, size: 12350) [annotate] [blame] [check-ins using]
To Artifact [b34663fda1]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [933990893e] at 2018-10-20 10:42:35 on branch shadowdom — [fx] More elegant solution for adding styles (user: IllusionPerdu, size: 12968) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
let xNode = document.createElement(sType);
Object.assign(xNode, oAttr);
if (oDataset) {
Object.assign(xNode.dataset, oDataset);
}
return xNode;
}
catch (e) {
showError(e);
}
}
};
| > > > > > > > > > > > > > > > > > > > > > > | 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
let xNode = document.createElement(sType);
Object.assign(xNode, oAttr);
if (oDataset) {
Object.assign(xNode.dataset, oDataset);
}
return xNode;
}
catch (e) {
showError(e);
}
},
createStyle: function (sLinkCss, sLinkId=null, oAppend=null) {
try {
let xNode = document.createElement("link");
Object.assign(xNode, {
rel: "stylesheet",
type: "text/css",
media: "all",
href: this.sExtensionUrl + sLinkCss
});
if (sLinkId) {
Object.assign(xNode, {id: sLinkId});
}
if (oAppend) {
oAppend.appendChild(xNode);
}
return xNode;
}
catch (e) {
showError(e);
}
}
};
|
| ︙ | ︙ |