AR guitar with just a laptop and scissors

(arguitar.com)

11 points | by castlew 1 hour ago

4 comments

  • jvogt 31 minutes ago
    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?

    • Bengalilol 22 minutes 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.
      • jvogt 0 minutes ago
        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.

  • vorticalbox 1 hour ago
    Getting errors on my iPhone

    Error: TypeError: undefined is not an object (evaluating 'window.ethereum.selectedAddress = undefined') (https://www.arguitar.com/:1)

    • Bengalilol 37 minutes ago
      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?

  • millspore 1 hour ago
    ethereum wallet check in an AR guitar app, thats a choice
  • dude250711 1 hour ago
    The real ones are not that expensive.
    • nomel 42 minutes ago
      I would rather you have typed this on a typewriter. They're not that expensive.