Skip to content

Commit 23a946b

Browse files
Fix code style issue + using consoleLogger
1 parent 247fbea commit 23a946b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/web/mage/apply/main.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
define([
77
'underscore',
88
'jquery',
9-
'./scripts'
10-
], function (_, $, processScripts) {
9+
'./scripts',
10+
'Magento_Ui/js/lib/logger/console-logger'
11+
], function (_, $, processScripts, consoleLogger) {
1112
'use strict';
1213

1314
var dataAttr = 'data-mage-init',
@@ -32,8 +33,9 @@ define([
3233
} else if ($(el)[component]) {
3334
$(el)[component](config);
3435
}
35-
}, function(error) {
36-
console.error(error);
36+
}, function (error) {
37+
consoleLogger.error(error);
38+
3739
return true;
3840
});
3941
}

0 commit comments

Comments
 (0)