Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(Elife): Typo in papers url; strip comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcmoulton committed Apr 3, 2020
1 parent f839fb8 commit a98610b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/themes/elife/downloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { after, append, create, select } from '../../util'
import eLifeDataProvider from './eLifeDataProvider'

const getPdfUrl = async (id: string, pdfType: string): Promise<string> => {
// Would generics help here?
const allowedPdfTypes = ['article', 'figures']
if (!allowedPdfTypes.includes(pdfType)) {
return ''
Expand Down Expand Up @@ -33,7 +32,7 @@ const getUrl = (type: string, id: string, title = ''): string => {
case 'readcube':
return `https://www.readcube.com/articles/10.7554/eLife.${id}`
case 'papers':
return `papers2://url/https%3A%2F%2Felifesciences.org%2Farticles%2F46206?title=${encodeURIComponent(
return `papers2://url/https%3A%2F%2Felifesciences.org%2Farticles%2F${id}?title=${encodeURIComponent(
title
)}`
}
Expand Down

0 comments on commit a98610b

Please sign in to comment.