diff --git a/packages/extension/src/libs/settings-state/index.ts b/packages/extension/src/libs/settings-state/index.ts index a91d96c85..e7e228fc2 100644 --- a/packages/extension/src/libs/settings-state/index.ts +++ b/packages/extension/src/libs/settings-state/index.ts @@ -30,7 +30,7 @@ class SettingsState { async getSubstrateSettings(): Promise { const state = await this.getStateByKey(StorageKeys.substrateState); const settings: SubstrateSettingsType = { - injectPolkadotjs: true, + injectPolkadotjs: false, }; return merge(settings, state); } diff --git a/packages/extension/src/providers/polkadot/inject.ts b/packages/extension/src/providers/polkadot/inject.ts index 6ef85511a..c5127ba03 100644 --- a/packages/extension/src/providers/polkadot/inject.ts +++ b/packages/extension/src/providers/polkadot/inject.ts @@ -97,7 +97,7 @@ const injectDocument = ( JSON.stringify({ method: InternalMethods.getSettings, params: [] }) ) .then((settings: SettingsType) => { - if (!settings.substrate.injectPolkadotjs) + if (settings.substrate.injectPolkadotjs) document.injectedWeb3["polkadot-js"] = new Proxy( provider, ProxyHandler