web - mitigate playground no longer starting

This commit is contained in:
Benjamin Pasero 2021-08-16 11:17:43 +02:00
parent 16f755cfc5
commit ceecefd764
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -37,10 +37,7 @@
recordStats: true,
trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', {
createScriptURL(value) {
if(value.startsWith(window.location.origin)) {
return value;
}
throw new Error(`Invalid script url: ${value}`)
return value;
}
}),
paths: self.webPackagePaths