Skip to content

Commit 53c1dc4

Browse files
committed
MAGETWO-86505: Fix for requireJS loading issues (for ad blockers) #13061
- Merge Pull Request #13061 from Yonn-Trimoreau/magento2:patch-1 - Merged commits: 1. 247fbea 2. 23a946b 3. 62b4b6d 4. 7843395 5. d826cb3
2 parents 0d04ec6 + d826cb3 commit 53c1dc4

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)