From 1867aef9ec6cac5838982b084cce6f0c3936ad2a Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Thu, 25 Apr 2024 14:31:05 -0500 Subject: [PATCH] log window messages except metamask --- frontend/src/Widget.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/Widget.jsx b/frontend/src/Widget.jsx index 0aac8f0..85427ba 100644 --- a/frontend/src/Widget.jsx +++ b/frontend/src/Widget.jsx @@ -256,6 +256,7 @@ function Widget() { window.addEventListener( 'message', (event) => { + if (event.data?.target?.startsWith('metamask')) return; console.log('window message', event); }, );