Skip to content

Commit 3c3fd3b

Browse files
MAGETWO-86505: Fix for requireJS loading issues (for ad blockers) #13061
2 parents 6268137 + 53c1dc4 commit 3c3fd3b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/web/mage/apply/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ define([
3232
} else if ($(el)[component]) {
3333
$(el)[component](config);
3434
}
35+
}, function (error) {
36+
if ('console' in window && typeof window.console.error === 'function') {
37+
console.error(error);
38+
}
39+
40+
return true;
3541
});
3642
}
3743

0 commit comments

Comments
 (0)