Skip to content

Commit

Permalink
revert getDocument in dokumenter (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorDigital committed Jan 3, 2024
1 parent 28d7109 commit 34d284e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/dokumenter/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@
let url;
getDocument(id).then(respUrl => {
// since this is very broken and doesn't work, use the old method HIGH PRIORITY FIX
// seems to me the problem is that the current `getDocument` requires the format of the downloaded file to be known beforehand (which is not REALLY plausible, although can technically be done idk)
throw new Error('Not implemented yet');
url = respUrl;
}).catch(() => {
url = `https://www.lectio.dk/lectio/${cookie.schoolId}/dokumenthent.aspx?documentid=${id}`;
Expand Down

0 comments on commit 34d284e

Please sign in to comment.