-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,13 +70,12 @@ mergeInto(LibraryManager.library, { | |
const enableAnalytics = parameters.enableAnalytics; | ||
|
||
// Load the scripts and initialize the configuration | ||
import("https://cdn.jsdelivr.net/npm/@reown/[email protected]/dist/appkit.js").then(CDNW3M => { | ||
console.log("CDNW3M", CDNW3M) | ||
const WagmiCore = CDNW3M['WagmiCore']; | ||
const Chains = CDNW3M['networks']; | ||
const WagmiAdapter = CDNW3M['WagmiAdapter']; | ||
const reconnect = WagmiCore['reconnect'] | ||
const createAppKit = CDNW3M['createAppKit'] | ||
import("https://cdn.jsdelivr.net/npm/@reown/[email protected]/dist/appkit.js").then(AppKit => { | ||
const WagmiCore = AppKit['WagmiCore']; | ||
const WagmiAdapter = AppKit['WagmiAdapter']; | ||
const Chains = AppKit['networks']; | ||
const reconnect = WagmiCore['reconnect']; | ||
const createAppKit = AppKit['createAppKit']; | ||
|
||
const chainsArr = chains.map(chainName => Chains[chainName]); | ||
|
||
|
@@ -105,7 +104,6 @@ mergeInto(LibraryManager.library, { | |
wagmiCore: WagmiCore | ||
}; | ||
|
||
|
||
// Insert the container into the DOM at the canvas's original position | ||
const canvas = document.getElementsByTagName('canvas')[0]; | ||
const container = document.createElement('div'); | ||
|