This file contains hidden or 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
| var detectInjection = function(knownHostsArray) { | |
| var requests = window.performance.getEntriesByType("resource"); | |
| var unknownHosts = []; | |
| var knownHosts = {}; | |
| var foundHosts = {}; | |
| for (var knownHost in knownHostsArray) { | |
| knownHosts[knownHostsArray[knownHost]] = true; | |
| } |