Skip to content

Commit

Permalink
🐛 fix: apply discord cdn changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms authored Feb 17, 2024
1 parent 57835ee commit 8cd8e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/viewer/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8cd8e0d

Please sign in to comment.