160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
}
/*
Actions
*/
start (xTextArea) {
this.xTextArea = xTextArea;
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;
|
>
>
>
|
|
>
|
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));
}
}
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;
|