From 127a3a858ab6a913b458f1381712eba16d394216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yasin=20=C3=87al=C4=B1=C5=9Fkan?= Date: Sun, 10 Sep 2023 10:51:31 +0200 Subject: [PATCH] fix(embedded): Remove embedded callback --- .../PeraWalletConnectModalDesktopMode.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modal/mode/desktop/PeraWalletConnectModalDesktopMode.ts b/src/modal/mode/desktop/PeraWalletConnectModalDesktopMode.ts index 48c16dc..d90b2f6 100644 --- a/src/modal/mode/desktop/PeraWalletConnectModalDesktopMode.ts +++ b/src/modal/mode/desktop/PeraWalletConnectModalDesktopMode.ts @@ -12,7 +12,7 @@ import QRCodeStyling from "qr-code-styling"; import styles from "./_pera-wallet-connect-modal-desktop-mode.scss"; import accordionStyles from "./accordion/_pera-wallet-accordion.scss"; -import {peraWalletFlowType} from "../../../util/device/deviceUtils"; +// import {peraWalletFlowType} from "../../../util/device/deviceUtils"; const peraWalletConnectModalDesktopMode = document.createElement("template"); const styleSheet = document.createElement("style"); @@ -198,16 +198,16 @@ export class PeraWalletModalDesktopMode extends HTMLElement { this.handleChangeView(); - if (peraWalletFlowType() === "EMBEDDED" && this.shadowRoot) { - const iframeWrapper = this.shadowRoot.querySelector( - ".pera-wallet-connect-modal-desktop-mode__web-wallet-iframe" - ); + // if (peraWalletFlowType() === "EMBEDDED" && this.shadowRoot) { + // const iframeWrapper = this.shadowRoot.querySelector( + // ".pera-wallet-connect-modal-desktop-mode__web-wallet-iframe" + // ); - if (iframeWrapper && this.getAttribute("is-web-wallet-avaliable") === "true") { - // @ts-ignore ts-2339 - window.onWebWalletConnect(iframeWrapper); - } - } + // if (iframeWrapper && this.getAttribute("is-web-wallet-avaliable") === "true") { + // // @ts-ignore ts-2339 + // window.onWebWalletConnect(iframeWrapper); + // } + // } } handleChangeView() {