web - mitigate playground no longer starting
This commit is contained in:
parent
16f755cfc5
commit
ceecefd764
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue