Grammalecte  Diff

Differences From Artifact [ee3e21ae91]:

To Artifact [1a7fb65c7e]:


160
161
162
163
164
165
166



167
168



169
170
171
172
173
174
175
160
161
162
163
164
165
166
167
168
169


170
171
172
173
174
175
176
177
178
179







+
+
+
-
-
+
+
+







    }
    
    /*
        Actions
    */
    start (xTextArea) {
        this.xTextArea = xTextArea;
        if (bChrome) {
            browser.storage.local.get("tf_options", this.setOptions.bind(this));
        } else {
        let xPromise = browser.storage.local.get("tf_options");
        xPromise.then(this.setOptions.bind(this), this.reset.bind(this));
            let xPromise = browser.storage.local.get("tf_options");
            xPromise.then(this.setOptions.bind(this), this.reset.bind(this));
        }
    }

    switchGroup (sOptName) {
        if (document.getElementById(sOptName).dataset.selected == "true") {
            document.getElementById(sOptName.slice(2)).style.opacity = 1;
        } else {
            document.getElementById(sOptName.slice(2)).style.opacity = 0.3;