Created
May 21, 2020 19:04
-
-
Save neodigm/fe141d060bd3f0e022e1c4bc076496c5 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
(function() { | |
if (window) { | |
delete window.WebSocket; | |
if ('WebSocket' in window) { | |
window.WebSocket = undefined; | |
} | |
console.log('WebSocket support disabled'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment