Differences From Artifact [6e32e0cbb4]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [a7c123cfd6] at 2019-02-25 12:11:35 on branch comdic — [fx] init: observePage, set this (user: olr, size: 14425) [annotate] [blame] [check-ins using] [more...]
To Artifact [649f297b3c]:
- File gc_lang/fr/webext/content_scripts/init.js — part of check-in [8ca82c9a7e] at 2019-03-15 14:00:47 on branch comdic — merge trunk (user: olr, size: 14450) [annotate] [blame] [check-ins using] [more...]
| ︙ | |||
100 101 102 103 104 105 106 107 108 109 110 111 112 113 | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | + |
}
}
}
},
observePage: function () {
// When a textarea is added via jascript we add the menu
let that = this;
let that = this;
this.xObserver = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
for (let i = 0; i < mutation.addedNodes.length; i++){
if (mutation.addedNodes[i].tagName == "TEXTAREA") {
if (that.oOptions === null || that.oOptions.textarea) {
oGrammalecte.lMenu.push(new GrammalecteMenu(oGrammalecte.nMenu, mutation.addedNodes[i]));
|
| ︙ |