Skip to content
Snippets Groups Projects
Unverified Commit 23a946b1 authored by Yonn Trimoreau's avatar Yonn Trimoreau Committed by GitHub
Browse files

Fix code style issue + using consoleLogger

parent 247fbea0
No related merge requests found
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
define([ define([
'underscore', 'underscore',
'jquery', 'jquery',
'./scripts' './scripts',
], function (_, $, processScripts) { 'Magento_Ui/js/lib/logger/console-logger'
], function (_, $, processScripts, consoleLogger) {
'use strict'; 'use strict';
var dataAttr = 'data-mage-init', var dataAttr = 'data-mage-init',
...@@ -32,8 +33,9 @@ define([ ...@@ -32,8 +33,9 @@ define([
} else if ($(el)[component]) { } else if ($(el)[component]) {
$(el)[component](config); $(el)[component](config);
} }
}, function(error) { }, function (error) {
console.error(error); consoleLogger.error(error);
return true; 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