Skip to content

Commit

Permalink
FIXED: call reload conditional (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongmincho authored Jun 15, 2022
1 parent 485047b commit fef64bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CoinbaseWalletSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export class CoinbaseWalletSDK {
extension.setProviderInfo(jsonRpcUrl, chainId);
}

if (this._reloadOnDisconnect === false)
if (
this._reloadOnDisconnect === false &&
typeof extension.disableReloadOnDisconnect === "function"
)
extension.disableReloadOnDisconnect();

return extension;
Expand Down

0 comments on commit fef64bf

Please sign in to comment.