setTrustedTypesPolicy()
setTrustedTypesPolicy(
policy:TrustedTypesPolicy):void
Defined in: util/trusted_types.ts:30
Sets the policy the library creates its trusted values with, for a page that enforces Trusted Types. Call it before creating a map.
Parameters
| Parameter | Type | Description |
|---|---|---|
policy |
TrustedTypesPolicy |
A policy from trustedTypes.createPolicy, or undefined to remove it. |
Returns
void