Skip to content

Commit b5333eb

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web/mage/requirejs/text.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ define(['module'], function (module) {
6060

6161
return (!uProtocol || uProtocol === location.protocol) &&
6262
(!uHostName || uHostName.toLowerCase() === location.hostname.toLowerCase()) &&
63-
((!uPort && !uHostName) || uPort === location.port);
63+
(!uPort && !uHostName || uPort === location.port);
6464
}
6565

6666
/**
@@ -89,13 +89,15 @@ define(['module'], function (module) {
8989
header,
9090
errorHandler = fail || Function();
9191

92+
/*eslint max-depth:0*/
9293
if ('setRequestHeader' in xhr && headers) {
9394
for (header in headers) {
9495
if (headers.hasOwnProperty(header)) {
9596
xhr.setRequestHeader(header.toLowerCase(), headers[header]);
9697
}
9798
}
9899
}
100+
/*eslint max-depth:[2, 2]*/
99101

100102
if (defaultConfig.onXhr) {
101103
defaultConfig.onXhr(xhr, url);

0 commit comments

Comments
 (0)