diff --git a/src/routes/viewer/+page.server.js b/src/routes/viewer/+page.server.js index 75b4227..362a434 100644 --- a/src/routes/viewer/+page.server.js +++ b/src/routes/viewer/+page.server.js @@ -16,7 +16,7 @@ export async function load({ url, fetch }) { let { ticketUrl } = Object.fromEntries(url.searchParams) if (ticketUrl) { - if (ticketUrl.startsWith('https://cdn.discordapp.com/attachments/') && ticketUrl.endsWith('.html')) { + if (ticketUrl.startsWith('https://cdn.discordapp.com/attachments/') && ticketUrl.includes('.html')) { try { response = await fetch(ticketUrl) } catch (e) {