Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2779022
D9435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9435.diff
View Options
diff --git a/landing/walletconnect-hooks.js b/landing/walletconnect-hooks.js
--- a/landing/walletconnect-hooks.js
+++ b/landing/walletconnect-hooks.js
@@ -17,7 +17,7 @@
for (const addedNode of mutation.addedNodes) {
if (
addedNode instanceof HTMLElement &&
- addedNode.localName === 'w3m-modal' &&
+ addedNode.localName === 'wcm-modal' &&
addedNode.shadowRoot
) {
const { shadowRoot } = addedNode;
@@ -63,7 +63,7 @@
if (
node instanceof HTMLElement &&
node.localName === 'div' &&
- node.className === 'w3m-container'
+ node.className === 'wcm-container'
) {
setWCResizableContainer(node);
}
@@ -80,9 +80,9 @@
// wcShadowRoot as React state so that we can properly "clean up" the
// associated observer below in an effect, but it means we have to deal with
// the associated delay in updated React state, which is unpredictable.
- const modal = wcShadowRoot.getElementById('w3m-modal');
+ const modal = wcShadowRoot.getElementById('wcm-modal');
if (modal) {
- const container = wcShadowRoot.querySelector('div.w3m-container');
+ const container = wcShadowRoot.querySelector('div.wcm-container');
if (container) {
setWCResizableContainer(container);
return undefined;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 21, 8:43 AM (20 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2160844
Default Alt Text
D9435.diff (1 KB)
Attached To
Mode
D9435: [landing] Update useMonitorForWalletConnectModal for new WalletConnect modal
Attached
Detach File
Event Timeline
Log In to Comment