1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Initial read from extension storage centralized (#561)

This commit is contained in:
nobody
2021-07-10 06:40:13 +02:00
parent 6ba26b7e36
commit c034bf0c04
2 changed files with 6 additions and 25 deletions

View File

@@ -72,6 +72,12 @@ main._initializeSettings = function () {
'path': stateManager.selectedIcon
}, 'Enabled');
storageManager.amountInjected = items.amountInjected || 0;
interceptor.xhrTestDomain = items.xhrTestDomain || Address.LOCALCDN;
interceptor.allowedDomainsGoogleFonts = items.allowedDomainsGoogleFonts || {};
interceptor.blockMissing = items.blockMissing === undefined ? false : items.blockMissing;
interceptor.blockGoogleFonts = items.blockGoogleFonts === undefined ? true : items.blockGoogleFonts;
storageManager.type.set(items);
});
};