We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5d8fb8 + 9250b90 commit 42cf411Copy full SHA for 42cf411
src/public/preload.js
@@ -37,7 +37,7 @@ var supportExternalLinks = function (e) {
37
}
38
39
40
- if (/^https?:\/\/.+/.test(href) === true /*&& RegExp('^https?:\/\/'+location.host).test(href) === false*/) {
+ if (/^https?:\/\/.+/.test(href) && !RegExp('^https?:\/\/'+location.host).test(href)) {
41
isExternal = true;
42
43
0 commit comments