Skip to content
Snippets Groups Projects
Commit 3c3fd3be authored by Ievgen Shakhsuvarov's avatar Ievgen Shakhsuvarov Committed by GitHub
Browse files

MAGETWO-86505: Fix for requireJS loading issues (for ad blockers) #13061

parents 6268137d 53c1dc4a
No related merge requests found
...@@ -32,6 +32,12 @@ define([ ...@@ -32,6 +32,12 @@ define([
} else if ($(el)[component]) { } else if ($(el)[component]) {
$(el)[component](config); $(el)[component](config);
} }
}, function (error) {
if ('console' in window && typeof window.console.error === 'function') {
console.error(error);
}
return true;
}); });
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment