Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 74aabb4

Browse files
Merge forwardport of magento/magento2#13061 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/13061.patch (created by @Yonn-Trimoreau) based on commit(s): 1. 247fbea 2. 23a946b 3. 62b4b6d 4. 7843395 5. d826cb3 Fixed GitHub Issues in 2.3-develop branch: - magento/magento2#12828: Uncaught Error: Script error for: trackingCode error on every frontend page (reported by @poojawebkul)
2 parents f1ecb11 + be77fdd commit 74aabb4

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)