Skip to content

Commit f5b8ba8

Browse files
committed
MAGETWO-60982: AJAX calls does not process error responses
1 parent 82b8149 commit f5b8ba8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/web/mage/backend/bootstrap.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
define([
88
'jquery',
99
'mage/apply/main',
10+
'mage/backend/notification',
1011
'Magento_Ui/js/lib/knockout/bootstrap',
1112
'mage/mage',
12-
'mage/translate',
13-
'mage/backend/notification'
14-
], function ($, mage) {
13+
'mage/translate'
14+
], function ($, mage, notification) {
1515
'use strict';
1616

1717
var bootstrap;
@@ -108,7 +108,7 @@ define([
108108
/*
109109
* Initialization of notification widget
110110
*/
111-
$('body').mage('notification');
111+
notification({}, $('body'));
112112
};
113113

114114
$(bootstrap);

0 commit comments

Comments
 (0)