@coinbase/wallet-sdk
Advanced tools
Comparing version 3.9.1 to 3.9.2
@@ -61,5 +61,2 @@ "use strict"; | ||
super.handleWeb3ResponseMessage(message); | ||
if (this._enableMobileWalletLink && this.ui instanceof MobileRelayUI_1.MobileRelayUI) { | ||
this.ui.closeOpenedWindow(); | ||
} | ||
} | ||
@@ -66,0 +63,0 @@ connectAndSignIn(params) { |
@@ -7,7 +7,5 @@ import { ErrorHandler } from '../../core/error'; | ||
private darkMode; | ||
private openedWindow; | ||
constructor(options: Readonly<RelayUIOptions>); | ||
attach(): void; | ||
setConnected(_connected: boolean): void; | ||
closeOpenedWindow(): void; | ||
private redirectToCoinbaseWallet; | ||
@@ -14,0 +12,0 @@ openCoinbaseWalletDeeplink(walletLinkUrl?: string): void; |
@@ -10,3 +10,2 @@ "use strict"; | ||
this.darkMode = false; | ||
this.openedWindow = null; | ||
this.redirectDialog = new RedirectDialog_1.RedirectDialog(); | ||
@@ -23,7 +22,2 @@ this.darkMode = options.darkMode; | ||
setConnected(_connected) { } // no-op | ||
closeOpenedWindow() { | ||
var _a; | ||
(_a = this.openedWindow) === null || _a === void 0 ? void 0 : _a.close(); | ||
this.openedWindow = null; | ||
} | ||
redirectToCoinbaseWallet(walletLinkUrl) { | ||
@@ -35,6 +29,7 @@ const url = new URL('https://go.cb-w.com/walletlink'); | ||
} | ||
this.openedWindow = window.open(url.href, 'cbw-opener'); | ||
if (this.openedWindow) { | ||
setTimeout(() => this.closeOpenedWindow(), 5000); | ||
} | ||
const anchorTag = document.createElement('a'); | ||
anchorTag.target = 'cbw-opener'; | ||
anchorTag.href = url.href; | ||
anchorTag.rel = 'noreferrer noopener'; | ||
anchorTag.click(); | ||
} | ||
@@ -57,3 +52,2 @@ openCoinbaseWalletDeeplink(walletLinkUrl) { | ||
return () => { | ||
this.closeOpenedWindow(); | ||
this.redirectDialog.clear(); | ||
@@ -63,3 +57,2 @@ }; | ||
hideRequestEthereumAccounts() { | ||
this.closeOpenedWindow(); | ||
this.redirectDialog.clear(); | ||
@@ -66,0 +59,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export declare const LIB_VERSION = "3.9.1"; | ||
export declare const LIB_VERSION = "3.9.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LIB_VERSION = void 0; | ||
exports.LIB_VERSION = '3.9.1'; | ||
exports.LIB_VERSION = '3.9.2'; |
{ | ||
"name": "@coinbase/wallet-sdk", | ||
"version": "3.9.1", | ||
"version": "3.9.2", | ||
"description": "Coinbase Wallet JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368368
155
8118