Skip to content

Commit

Permalink
✨ explorer thumbnails code review touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Nov 8, 2024
1 parent ab0149f commit 3d61b31
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 89 deletions.
2 changes: 1 addition & 1 deletion functions/_common/grapherTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@ export function rewriteMetaTags(
},
})

return rewriter.transform(page as unknown as Response)
return rewriter.transform(page)
}
1 change: 1 addition & 0 deletions functions/explorers/[slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ async function handleThumbnailRequest(
try {
const html = await explorerPage.text()
const queryStr = url.searchParams.toString()
// The env URL class isn't compatible with the Url class from @ourworldindata/utils
const urlObj = Url.fromURL(url.toString())
const [windowEntityNames] = [urlObj]
.map(migrateSelectedEntityNamesParam)
Expand Down
86 changes: 0 additions & 86 deletions packages/@ourworldindata/explorer/readme.md

This file was deleted.

Loading

0 comments on commit 3d61b31

Please sign in to comment.