3 ms·
While there are some ways to detect having devtools open[1], this website isn't actually using them. Instead, it just always writes these messages to the consol
by timvdalen 5y ago
While there are some ways to detect having devtools open[1], this website isn't actually using them.
Instead, it just always writes these messages to the console.
Before navigating to the answers, it clears the console so you don't see the messages that were logged before.
[1]: https://stackoverflow.com/a/7809413/451847 https://stackoverflow.com/a/7809413/451847
- shoeffner 5y agoThis answer how facebook does (did?) it and why is also very interesting: https://stackoverflow.com/a/21693931 https://stackoverflow.com/a/21693931