Skip to content

Commit

Permalink
Merge pull request #372 from enkryptcom/fix/polkadot-connect
Browse files Browse the repository at this point in the history
devop: configure proper polkadot injection copy
  • Loading branch information
kvhnuke authored Dec 30, 2023
2 parents d6f5f02 + d894a4d commit 0c8c086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/extension/src/libs/settings-state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SettingsState {
async getSubstrateSettings(): Promise<SubstrateSettingsType> {
const state = await this.getStateByKey(StorageKeys.substrateState);
const settings: SubstrateSettingsType = {
injectPolkadotjs: true,
injectPolkadotjs: false,
};
return merge(settings, state);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/providers/polkadot/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 0c8c086

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.