From de4928cc579fb6a50cca071e87657ad30a25e61f Mon Sep 17 00:00:00 2001 From: montehurd Date: Thu, 14 Jul 2016 12:07:39 -0700 Subject: [PATCH] Fix iOS link click regression. Was using JS method not present w/iOS 8. --- Wikipedia/assets/index.js | 6 +++--- www/js/refs.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Wikipedia/assets/index.js b/Wikipedia/assets/index.js index c5ffe59dcaa..29e72dad052 100644 --- a/Wikipedia/assets/index.js +++ b/Wikipedia/assets/index.js @@ -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 ) { diff --git a/www/js/refs.js b/www/js/refs.js index 3a74aa9427b..621cf611fc4 100644 --- a/www/js/refs.js +++ b/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 ) {