* Sets the action allowlist. Can be used to clear it. * @param {!Array<{tagOrTarget: string, method: string}>} allowlist
(allowlist)
| 555 | * @param {!Array<{tagOrTarget: string, method: string}>} allowlist |
| 556 | */ |
| 557 | setAllowlist(allowlist) { |
| 558 | devAssert( |
| 559 | allowlist.every((v) => v.tagOrTarget && v.method), |
| 560 | 'Action allowlist entries should be of shape { tagOrTarget: string, method: string }' |
| 561 | ); |
| 562 | this.allowlist_ = allowlist; |
| 563 | } |
| 564 | |
| 565 | /** |
| 566 | * Adds an action to the allowlist. |
no test coverage detected