Skip to content

Commit

Permalink
Translate doi.org URL instead of extracting DOI (zotero#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode authored and dstillman committed Nov 12, 2018
1 parent a185c5c commit 286f65c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/webSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ WebSession.prototype.handleURL = async function () {
}
}

// If a doi.org URL, use search handler
if (url.match(/^https?:\/\/[^\/]*doi\.org\//)) {
let doi = Zotero.Utilities.cleanDOI(url);
await SearchEndpoint.handleIdentifier(this.ctx, { DOI: doi });
return;
}

var urlsToTry = config.get('deproxifyURLs') ? this.deproxifyURL(url) : [url];
for (let i = 0; i < urlsToTry.length; i++) {
let url = urlsToTry[i];
Expand Down

0 comments on commit 286f65c

Please sign in to comment.