sindresorhus / devtools-detect

Detect if DevTools is open and its orientation

Home Page:https://sindresorhus.com/devtools-detect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maybe, there's a better way to detect it.

mycoin opened this issue · comments

RT

<script type="text/javascript">
var el = new Image();
Object.defineProperty(el, 'id', {
    get: function() {
        alert('active');
    }
});
console.log('%cHello', el);
</script>

not support firefox

Doesn't work after clearing the console.