Skip to content

Commit

Permalink
Merge branch 'fix/remove-embedded-wallet' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yasincaliskan committed Sep 10, 2023
2 parents 0101532 + 127a3a8 commit 3c42cf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.3",
"version": "1.0.4",
"name": "@perawallet/connect-beta",
"description": "Beta version of Pera Wallet Connect",
"main": "dist/index.js",
Expand Down
20 changes: 10 additions & 10 deletions src/modal/mode/desktop/PeraWalletConnectModalDesktopMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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");
Expand Down Expand Up @@ -231,16 +231,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() {
Expand Down

0 comments on commit 3c42cf3

Please sign in to comment.