Hi again,
There is a open issue here:
https://github.com/sindresorhus/devtools-detect/issues/52
I think there is no easy solution. You say that it “Doesn’t work if DevTools is undocked and will show false positive if you toggle any kind of sidebar.”
What do you think?
-
This reply was modified 4 years, 4 months ago by rolarseo.
It’s embarrassing but it was my mistake. In my functions.php file I had a redirect from the 404 page to the home page. Once the redirect is removed the plugin works perfectly.