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.
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.
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.
Shady... new HN user. No contact / author info on the site. Alleged references to ethereum in the source code.
Any recent browser exploits involving WASM and webcam apis?
(edit: looks like the ethereum error mentioned below is a vercel / nextjs / brave browser known issue)
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:
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.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.
Getting errors on my iPhone
Error: TypeError: undefined is not an object (evaluating 'window.ethereum.selectedAddress = undefined') (https://www.arguitar.com/:1)
OP is one hour old here, what could go wrong?
but let's be optimistic (since it's a known Brave bug): does it happen to you when using private mode or another browser?
ethereum wallet check in an AR guitar app, thats a choice
The real ones are not that expensive.
I would rather you have typed this on a typewriter. They're not that expensive.