Skip to content
Snippets Groups Projects
Verified Commit c2670b3d authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Fix #187 by adding an exception handler

parent a7187a83
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,17 @@ var LoadWatcher = new Class({
shouldLoad: function (contentType, contentLocation, requestOrigin, node) {
if (contentType == SCRIPT_CONTENT_TYPE && mappings[contentLocation.host]) {
let contentHost;
try {
contentHost = contentLocation.host;
} catch (exception) {
// Accept the resource load request.
return REQUEST_ACCEPTATION;
}
if (contentType == SCRIPT_CONTENT_TYPE && mappings[contentHost]) {
if (node instanceof SCRIPT_ELEMENT) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment