We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4b2fa commit c065bb9Copy full SHA for c065bb9
scripts/options.js
@@ -96,6 +96,19 @@ class AccountManager extends window.StorageManager {
96
97
const typeForm = this.form.querySelector("select");
98
99
+ browser.runtime.getBrowserInfo()
100
+ .then(({ version }) => {
101
+ const [ major ] = version.split('.');
102
+ if(parseInt(major, 10) >= 60) {
103
+ const disabledOptions = typeForm.querySelectorAll('option[disabled]');
104
+ typeForm.querySelector('option[selected]').selected = false;
105
+ for(const option of disabledOptions) {
106
+ option.disabled = false;
107
+ }
108
109
+ })
110
+ .catch(console.error);
111
+
112
browser.storage.onChanged.addListener((changes, areaName) => {
113
if(areaName === "local" && "handlers" in changes) {
114
const handlerIds = new Set();
0 commit comments