Hacker News new | ask | show | jobs
by junon 1739 days ago
I'm using just a slightly outdated browser, which is probably the cause. I'm on Ungoogled Chromium 81 (by choice) which doesn't automatically update, and the ||= (boolean OR assignment) operator wasn't added until 85.

Your payload appears to compile down for older browsers (as is evident by the use of `var`, unless.. you actually write code using `var`) but it misses the ||= operator transformation it seems.

Thus, the browser throws a syntax error, which your app interprets as "new version" for some reason.

By the way, please don't disable right clicking. It doesn't actually solve any problems and only annoys users.

2 comments

Great diagnostics! We'll have to adjust our compilation settings to target a broader browser set.

I've filed an issue regarding the right click issue. That's a fair comment: https://github.com/RecordReplay/devtools/issues/3615

BTW, created https://github.com/RecordReplay/devtools/issues/3619 to follow up on the logical or assignment as well. Should be fixed soon
Thanks for the followup!