TheStanfordDaily / archives-web

Helper functions and web app for METS/ALTO archive viewing.
https://archives.stanforddaily.com
6 stars 2 forks source link

fix(today-in-history): no more document undefined error #93

Closed ufxela closed 4 years ago

ufxela commented 4 years ago

Reasons for making this change

I screwed up & merged broken nextjs stuff into master (wasn't deployed though). This fixes the bug. The bug was that openseadragon requires certain properties are not undefined (I think https://github.com/TheStanfordDaily/archives-web/commit/932cfce33c53addf6a2607c341717162529e9023 also refers to this issue). The reason I couldn't use the same fix as https://github.com/TheStanfordDaily/archives-web/commit/932cfce33c53addf6a2607c341717162529e9023 is because it would cause other parts of the site, like the issue pages, to break.