Skip to content

Commit

Permalink
why do I always forget to git add
Browse files Browse the repository at this point in the history
  • Loading branch information
Funkatronics committed Nov 12, 2024
1 parent 830e0dd commit 656983e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions js/packages/wallet-standard-mobile/src/embedded-modal/modal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import QRCode from 'qrcode';

import { BluetoothHtml } from './bluetooth-html.js';
import { QRCodeHtml } from './qrcode-html.js';
import { css } from './styles.js';

Expand All @@ -14,7 +13,6 @@ export default class EmbeddedModal {
// Bind methods to ensure `this` context is correct
this.init = this.init.bind(this);
this.injectQRCodeHTML = this.injectQRCodeHTML.bind(this);
this.injectBluetoothHTML = this.injectBluetoothHTML.bind(this);
this.open = this.open.bind(this);
this.close = this.close.bind(this);
this.connect = this.connect.bind(this);
Expand Down Expand Up @@ -88,21 +86,6 @@ export default class EmbeddedModal {
this.attachEventListeners();
}

private injectBluetoothHTML() {
// Check if the HTML has already been injected
if (document.getElementById('mobile-wallet-adapter-embedded-root-ui')) {
return;
}

this._root = document.createElement('div');
this._root.id = 'mobile-wallet-adapter-embedded-root-ui';
this._root.className = 'mobile-wallet-adapter-embedded-modal';
this._root.innerHTML = BluetoothHtml;
document.body.appendChild(this._root);

this.attachEventListeners();
}

private attachEventListeners() {
if (!this._root) return;

Expand Down

0 comments on commit 656983e

Please sign in to comment.