Skip to content

Commit

Permalink
fix(trusted-types): backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Mar 20, 2024
1 parent 1774eb7 commit acaaef7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ export class LazyElementsLoaderService implements OnDestroy {
if (isModule) {
script.type = 'module';
}
script.src = getPolicy().createScriptURL(url);
script.src = getPolicy()?.createScriptURL(url) ?? url;
const onLoad = () => {
if (afterLoadHook) {
this.handleHook(afterLoadHook, tag)
Expand Down

0 comments on commit acaaef7

Please sign in to comment.