Skip to content

Commit

Permalink
Merge branch 'master' into servers-list
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Aug 26, 2015
2 parents 566f2d4 + c3f8718 commit 4d4b966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ var supportExternalLinks = function (e) {

var checkDomElement = function (element) {
if (element.nodeName === 'A') {
href = element.getAttribute('href') || '';
if (element.classList.contains('swipebox') == false) {
href = element.getAttribute('href') || '';
}
}

if (/^https?:\/\/.+/.test(href) === true /*&& RegExp('^https?:\/\/'+location.host).test(href) === false*/) {
Expand Down

0 comments on commit 4d4b966

Please sign in to comment.