updating json with 100-ish new UA's
This commit is contained in:
parent
194bbaf472
commit
5d9b0e6b12
2 changed files with 3 additions and 6 deletions
|
@ -18,10 +18,7 @@ chrome.storage.local.get(prefs, ps => {
|
||||||
});
|
});
|
||||||
chrome.storage.onChanged.addListener(ps => {
|
chrome.storage.onChanged.addListener(ps => {
|
||||||
Object.keys(ps).forEach(key => prefs[key] = ps[key].newValue);
|
Object.keys(ps).forEach(key => prefs[key] = ps[key].newValue);
|
||||||
if (ps.ua) {
|
if (ps.ua || ps.mode) {
|
||||||
update();
|
|
||||||
}
|
|
||||||
if (ps.mode) {
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -180,7 +177,7 @@ User-Agent String: ${prefs.mode === 'custom' ? custom : prefs.ua || navigator.us
|
||||||
// FAQs & Feedback
|
// FAQs & Feedback
|
||||||
chrome.storage.local.get({
|
chrome.storage.local.get({
|
||||||
'version': null,
|
'version': null,
|
||||||
'faqs': true,
|
'faqs': false,
|
||||||
'last-update': 0
|
'last-update': 0
|
||||||
}, prefs => {
|
}, prefs => {
|
||||||
const version = chrome.runtime.getManifest().version;
|
const version = chrome.runtime.getManifest().version;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue