Page MenuHomePhabricator

D9435.id31863.diff
No OneTemporary

D9435.id31863.diff

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

Mime Type
text/plain
Expires
Sat, Sep 21, 10:30 AM (22 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2160844
Default Alt Text
D9435.id31863.diff (1 KB)

Event Timeline