Skip to content

Commit

Permalink
Add 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-healey committed Jan 10, 2024
1 parent 3ea38a7 commit 9e92ba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified build/open-inline-citation.xpi
Binary file not shown.
4 changes: 2 additions & 2 deletions src/inline-citations.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ return postprocess(links);
decodeURIComponent(citation)
);
if (!destination)
alert(decodeURIComponent(citation) + " not found");
throw new Error(decodeURIComponent(citation) + " is an invalid link");

const loc = destination[0].num;
const {name} = destination[1];
Expand Down Expand Up @@ -275,7 +275,7 @@ return postprocess(links);
// Prevents bugs with i.e. McAuley et al 2015 in the WT5 paper
&& (
idx === 0 ||
Math.abs(i.transform[5] - strippedContent[idx - 1].transform[5]) >= i.height * 1.52 ||
Math.abs(i.transform[5] - strippedContent[idx - 1].transform[5]) >= i.height * 1.25 ||
i.str.match(/\[\d+\]/)
)
);
Expand Down

0 comments on commit 9e92ba2

Please sign in to comment.