-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hello!
I would like to request trusted types support for the package.
Specifically, we need to be able to pass a policy instance and for this instance to be used in every Worker constructor.
As of today, there is only one Worker constructor that needs the policy which is in the worker-timers-broker dependency, module.ts file, line 12.
I understand we can achieve this by using the dependencies directly, but for the sake of convenience it would be great if we can add it here.
For example, in load-or-return-broker.ts:
Before
broker = loadBroker(url)
After
...
if (trustedTypesPolicyInstance) {
const trustedUrl = trustedTypesPolicyInstance.createScriptURL(url);
broker = loadBroker(trustedUrl)
}
...
Thanks
Metadata
Metadata
Assignees
Labels
No labels