diff --git a/chrome/content/zotero/xpcom/quickCopy.js b/chrome/content/zotero/xpcom/quickCopy.js index 3018dbe04..307ba33a9 100644 --- a/chrome/content/zotero/xpcom/quickCopy.js +++ b/chrome/content/zotero/xpcom/quickCopy.js @@ -145,7 +145,7 @@ Zotero.QuickCopy = new function() { // Only concern ourselves with entries containing the current domain // or paths that apply to all domains - if (!row.domainPath.contains(urlDomain[0]) && !row.domainPath.startsWith('/')) { + if (!row.domainPath.indexOf(urlDomain[0]) != -1 && !row.domainPath.startsWith('/')) { continue; } diff --git a/chrome/content/zotero/xpcom/search.js b/chrome/content/zotero/xpcom/search.js index 1b631ea73..c5a92eaeb 100644 --- a/chrome/content/zotero/xpcom/search.js +++ b/chrome/content/zotero/xpcom/search.js @@ -1123,7 +1123,7 @@ Zotero.Search.prototype._buildQuery = Zotero.Promise.coroutine(function* () { let objectTypeClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType); // Old-style library-key hash - if (objKey.contains('_')) { + if (objKey.indexOf('_') != -1) { [objLibraryID, objKey] = objKey.split('_'); } // libraryID assigned on search diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index 3bc48c506..17e342696 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -172,7 +172,7 @@ function ZoteroProtocolHandler() { // search // items // item - if (params.sort.contains('/')) { + if (params.sort.indexOf('/') != -1) { let parts = params.sort.split('/'); params.sort = parts[0]; params.direction = parts[1] == 'd' ? 'desc' : 'asc';