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:
@@ -33,7 +33,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;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user