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:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user