diff --git a/shared/js/background/components/remote-config.js b/shared/js/background/components/remote-config.js index ec27b3883..ebf0a05a0 100644 --- a/shared/js/background/components/remote-config.js +++ b/shared/js/background/components/remote-config.js @@ -32,7 +32,9 @@ export default class RemoteConfig { * @param {Config} configValue */ updateConfig(configValue) { - this.config = processRawConfig(configValue, this.settings) + // copy config value before modification + const configCopy = structuredClone(configValue) + this.config = processRawConfig(configCopy, this.settings) } /** diff --git a/shared/js/background/storage/tds.js b/shared/js/background/storage/tds.js index c5a776e30..dd02b9aad 100644 --- a/shared/js/background/storage/tds.js +++ b/shared/js/background/storage/tds.js @@ -16,7 +16,7 @@ export default { _tds: { entities: {}, trackers: {}, domains: {}, cnames: {} }, _surrogates: '', get config() { - return globalThis.components?.tds.config.data || this._config; + return globalThis.components?.config.config || this._config; }, get tds() { return globalThis.components?.tds.tds.data || this._tds;