Created
March 28, 2018 08:37
-
-
Save josemmo/3fd73b0047c2392a88ae851ff4f421ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Detectar Developer Tools abierto | |
var tolerance = 300; | |
var dev_open = (diff > tolerance); | |
// Mostrar mensaje de error | |
if (dev_open) { | |
document.body.innerHTML = 'Cierra las Developer Tools y recarga la web'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment