Skip to content

Commit

Permalink
Merge pull request #776 from wikimedia/regression/iOS8-link-clicks/T1…
Browse files Browse the repository at this point in the history
…40400

Fix iOS link click regression. Was using JS method not present w/iOS 8.
  • Loading branch information
coreyfloyd committed Jul 14, 2016
2 parents 03e7dd0 + 20d807e commit 3c4b3ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Wikipedia/assets/index.js
Expand Up @@ -180,15 +180,15 @@ document.addEventListener("touchend", handleTouchEnded, false);
},{"./refs":4,"./transforms/collapseTables":7,"./utilities":12}],4:[function(require,module,exports){

function isCitation( href ) {
return href.includes("#cite_note");
return href.indexOf("#cite_note") > -1;
}

function isEndnote( href ) {
return href.includes("#endnote_");
return href.indexOf("#endnote_") > -1;
}

function isReference( href ) {
return href.includes("#ref_");
return href.indexOf("#ref_") > -1;
}

function goDown( element ) {
Expand Down
6 changes: 3 additions & 3 deletions www/js/refs.js
@@ -1,14 +1,14 @@

function isCitation( href ) {
return href.includes("#cite_note");
return href.indexOf("#cite_note") > -1;
}

function isEndnote( href ) {
return href.includes("#endnote_");
return href.indexOf("#endnote_") > -1;
}

function isReference( href ) {
return href.includes("#ref_");
return href.indexOf("#ref_") > -1;
}

function goDown( element ) {
Expand Down

0 comments on commit 3c4b3ac

Please sign in to comment.