Skip to content

Commit

Permalink
Ignore "Exception invoking lineTo" JS error
Browse files Browse the repository at this point in the history
Only ever from:

    Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Which is almost certainly just some bot. Only happens on public sites.
  • Loading branch information
arp242 committed Aug 19, 2024
1 parent 99c1dcf commit e0b9256
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
// I don't what kind of shitty thing is spamming me with this, but I've
// gotten a lot of these and I'm getting tired of it.
if (msg.indexOf("document.getElementsByTagName('video')[0].webkitExitFullScreen") !== -1 ||
msg.match(/Cannot redefine property: (googletag|ethereum)/) !== null
msg.match(/Cannot redefine property: (googletag|ethereum)/) !== null ||
msg.indexOf('Exception invoking lineTo') !== -1 // Only from bot, never any details.
)
return
// Don't log errors from extensions.
Expand Down

0 comments on commit e0b9256

Please sign in to comment.