@kytta Iteresting, thanks! I'll have a look!
3 comments
@kytta Just had a look. Didn't expect it to be that simple. There are so many ways to mess with it. :) Some of which by use of DevTools, haha. @kytta Also, what if DevTools are opened in a separate window? Then the threshold-criteria in the conditional few lines afterwards will break. https://github.com/sindresorhus/devtools-detect/blob/main/index.js#L25-L26 Don't know what to make of this. :) |
@floppy TL;DR: it tries to detect it using a combination of the User-Agent, screen density and orientation. For me, it apparently thinks I am using Firefox Mobile xD