Socket
Socket
Sign inDemoInstall

@web3modal/wallet

Package Overview
Dependencies
Maintainers
11
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3modal/wallet - npm Package Compare versions

Comparing version 4.0.0-alpha.3 to 4.0.0-bd5fd741

34

dist/esm/src/W3mFrame.js

@@ -51,18 +51,20 @@ import { W3mFrameConstants } from './W3mFrameConstants.js';

});
const iframe = document.createElement('iframe');
iframe.id = 'w3m-iframe';
iframe.src = `${W3mFrameConstants.SECURE_SITE_SDK}?projectId=${projectId}`;
iframe.style.position = 'fixed';
iframe.style.zIndex = '999999';
iframe.style.display = 'none';
iframe.style.opacity = '0';
iframe.style.borderRadius = `clamp(0px, var(--wui-border-radius-l), 44px)`;
document.body.appendChild(iframe);
this.iframe = iframe;
this.iframe.onload = () => {
this.frameLoadPromiseResolver?.resolve(undefined);
};
this.iframe.onerror = () => {
this.frameLoadPromiseResolver?.reject('Unable to load email login dependency');
};
if (typeof window !== 'undefined') {
const iframe = document.createElement('iframe');
iframe.id = 'w3m-iframe';
iframe.src = `${W3mFrameConstants.SECURE_SITE_SDK}?projectId=${projectId}`;
iframe.style.position = 'fixed';
iframe.style.zIndex = '999999';
iframe.style.display = 'none';
iframe.style.opacity = '0';
iframe.style.borderRadius = `clamp(0px, var(--wui-border-radius-l), 44px)`;
document.body.appendChild(iframe);
this.iframe = iframe;
this.iframe.onload = () => {
this.frameLoadPromiseResolver?.resolve(undefined);
};
this.iframe.onerror = () => {
this.frameLoadPromiseResolver?.reject('Unable to load email login dependency');
};
}
}

@@ -69,0 +71,0 @@ }

export const W3mFrameConstants = {
SECURE_SITE_SDK: 'https://secure.web3modal.com/sdk',
SECURE_SITE_SDK: 'https://secure.walletconnect.com/sdk',
APP_EVENT_KEY: '@w3m-app/',

@@ -4,0 +4,0 @@ FRAME_EVENT_KEY: '@w3m-frame/',

export declare const W3mFrameConstants: {
readonly SECURE_SITE_SDK: "https://secure.web3modal.com/sdk";
readonly SECURE_SITE_SDK: "https://secure.walletconnect.com/sdk";
readonly APP_EVENT_KEY: "@w3m-app/";

@@ -4,0 +4,0 @@ readonly FRAME_EVENT_KEY: "@w3m-frame/";

{
"name": "@web3modal/wallet",
"version": "4.0.0-alpha.3",
"version": "4.0.0-bd5fd741",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/esm/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc