From c92fc6dd57d56cbf194fc231212d751c111c764b Mon Sep 17 00:00:00 2001 From: DanielArnould <126921824+DanielArnould@users.noreply.github.com> Date: Mon, 8 Jul 2024 21:02:33 +1000 Subject: [PATCH] Fix CORS errors (#274) --- example/src/App.tsx | 4 ++-- example/src/test-highlights.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 31f33b96c..7bcc0652d 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -44,8 +44,8 @@ const HighlightPopup = ({ ) : null; -const PRIMARY_PDF_URL = "https://arxiv.org/pdf/1708.08021.pdf"; -const SECONDARY_PDF_URL = "https://arxiv.org/pdf/1604.02480.pdf"; +const PRIMARY_PDF_URL = "https://arxiv.org/pdf/1708.08021"; +const SECONDARY_PDF_URL = "https://arxiv.org/pdf/1604.02480"; const searchParams = new URLSearchParams(document.location.search); diff --git a/example/src/test-highlights.ts b/example/src/test-highlights.ts index ebafd5628..a8f8711da 100644 --- a/example/src/test-highlights.ts +++ b/example/src/test-highlights.ts @@ -1,5 +1,5 @@ export const testHighlights = { - "https://arxiv.org/pdf/1708.08021.pdf": [ + "https://arxiv.org/pdf/1708.08021": [ { content: { text: " Type Checking for JavaScript", @@ -279,7 +279,7 @@ export const testHighlights = { }, }, ], - "https://arxiv.org/pdf/1604.02480.pdf": [ + "https://arxiv.org/pdf/1604.02480": [ { content: { text: "SSA",