Hacker News new | ask | show | jobs
by Bengalilol 28 days ago
I may have missed something obvious, but I can't find the references to ethereum in the source code. Can you point me to the js file?

I have found this though: https://github.com/vercel/next.js/discussions/44899

It may be unrelated to the app which is using Vercel next.js and it seems to catch the error when in dev mode (yes .. I don't know much about it). Brave uses a wallet (Brave Wallet) and it looks like it is adding this every time you visit a site. Newer versions of Brave shouldn't display this error (or when browsing in private mode). I am confused, because I am discovering this right now. Sorry.

https://github.com/localtunnel/localtunnel/issues/514

Anyways, if app author is reading, there may be a simple solution by adding this code:

  window.addEventListener('error', e => {
    if (e.message?.includes('ethereum')) e.stopImmediatePropagation();
  });
ps: when I visited the site, I intuitively said no to myself "no way I am activating my camera in order to try air guitar, I cannot trust what I am viewing". The vibe feel, the lack of vids, the overall "quickly setup site" made me go.
1 comments

I didn't find any reference either, but that wouldn't necessarily rule out something malicious in the wasm or some external JS that gets conditionally loaded in.

Good find though - more than likely the ethereum error the other comment mentioned is coming from Brave on iOS.