tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
405 stars 21 forks source link

A debugger statement is present in the code #1418

Closed ramzi-mrabet closed 2 hours ago

ramzi-mrabet commented 2 hours ago

Checklist

OS and Version

Windows 10

Browser and version

Chrome 130

Describe the bug/issue

A debugger statement is present in the code, and it gets triggered when the developer tools is opened in inspect mode.

Reproducing

Just open website and open the inspect

Expected behavior

Opening the developer tools in inspect mode should not trigger any debugger statements or cause the code to pause unexpectedly.

Screenshots

image

Console logs

No response

Additional context

No response

ZaptorZap commented 2 hours ago

This is by design. It's a very basic anti-tamper measure. If you want to argue for its removal, I'm afraid there's a bit of a precedence to keep it in. In any case, it's not a bug.

As far as console logs go, theoretically we expect you to open the console after unintended/relevant behavior occurs, which should still be logged even if the game isn't running.