Open options on grouping of (enabled) sites

This commit is contained in:
magnolia1234 2022-08-10 19:48:00 +02:00
parent 925b83eee2
commit 01218cd1f1
2 changed files with 10 additions and 0 deletions

View file

@ -355,6 +355,15 @@ ext_api.storage.local.get({
ext_api.storage.local.set({ ext_api.storage.local.set({
sites: sites sites: sites
}); });
} else {
ext_api.management.getSelf(function (result) {
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
let new_groups = ['###_de_westfalen_medien', '###_es_unidad', '###_it_gedi', '###_nl_dpg_media', '###_usa_genomeweb'];
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain)));
if (open_options)
ext_api.runtime.openOptionsPage();
}
});
} }
sites_default = Object.keys(defaultSites).filter(x => defaultSites[x].domain && !defaultSites[x].domain.match(/^(#options_|###$)/)); sites_default = Object.keys(defaultSites).filter(x => defaultSites[x].domain && !defaultSites[x].domain.match(/^(#options_|###$)/));
ext_api.storage.local.set({ ext_api.storage.local.set({

View file

@ -6,6 +6,7 @@ Add Aachener Nachrichten &Zeitung
Remove World Politics Review (fix obsolete) Remove World Politics Review (fix obsolete)
Fix Limburger.nl & Mediahuis Belgie (mobile) Fix Limburger.nl & Mediahuis Belgie (mobile)
Fix TheTimes.co.uk (epaper-fix obsolete) Fix TheTimes.co.uk (epaper-fix obsolete)
Open options on grouping of (enabled) sites
* v2.7.9.0 (2022-08-07) * v2.7.9.0 (2022-08-07)
Add Limburger.nl Add Limburger.nl