1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 12:14:18 +00:00

Use esm.sh instead of unpkg as Ruffle CDN

This way admins don't have to change their content security policy
This commit is contained in:
CenTdemeern1
2024-10-16 02:48:48 +02:00
parent 0e7105f1f7
commit 25fe3ceca1
4 changed files with 9 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ const externalPackages = [
path(id: string, pattern: RegExp): string {
const match = pattern.exec(id)?.groups;
return match
? `https://unpkg.com/@ruffle-rs/ruffle@${packageInfo.dependencies['@ruffle-rs/ruffle']}/${match['file']}`
? `https://esm.sh/@ruffle-rs/ruffle@${packageInfo.dependencies['@ruffle-rs/ruffle']}/${match['file']}`
: id;
},
},