Skip to content

Commit 5f6ac4c

Browse files
committed
MAGETWO-43201: Require JS loading via CDN fails
- Fix code style
1 parent b5333eb commit 5f6ac4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/web/mage/requirejs/text.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,16 @@ define(['module'], function (module) {
8989
header,
9090
errorHandler = fail || Function();
9191

92-
/*eslint max-depth:0*/
92+
/*eslint-disable max-depth */
9393
if ('setRequestHeader' in xhr && headers) {
9494
for (header in headers) {
9595
if (headers.hasOwnProperty(header)) {
9696
xhr.setRequestHeader(header.toLowerCase(), headers[header]);
9797
}
9898
}
9999
}
100-
/*eslint max-depth:[2, 2]*/
100+
101+
/*eslint-enable max-depth */
101102

102103
if (defaultConfig.onXhr) {
103104
defaultConfig.onXhr(xhr, url);
@@ -114,6 +115,7 @@ define(['module'], function (module) {
114115
defaultConfig.onXhrComplete(xhr, url);
115116
}
116117
};
118+
117119
/**
118120
* onerror handler
119121
*/

0 commit comments

Comments
 (0)