File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -548,8 +548,9 @@ const createOverlay = (options) => {
548548 */
549549 function ensureOverlayExists ( callback , trustedTypesPolicyName ) {
550550 if ( containerElement ) {
551+ // @ts -expect-error https://github.com/microsoft/TypeScript/issues/30024
551552 containerElement . innerHTML = overlayTrustedTypesPolicy
552- ? overlayTrustedTypesPolicy . createHTML ( "" ) . toString ( )
553+ ? overlayTrustedTypesPolicy . createHTML ( "" )
553554 : "" ;
554555 // Everything is ready, call the callback right away.
555556 callback ( containerElement ) ;
@@ -628,8 +629,9 @@ const createOverlay = (options) => {
628629 const messageTextNode = document . createElement ( "div" ) ;
629630 applyStyle ( messageTextNode , msgTextStyle ) ;
630631
632+ // @ts -expect-error https://github.com/microsoft/TypeScript/issues/30024
631633 messageTextNode . innerHTML = overlayTrustedTypesPolicy
632- ? overlayTrustedTypesPolicy . createHTML ( text ) . toString ( )
634+ ? overlayTrustedTypesPolicy . createHTML ( text )
633635 : text ;
634636
635637 entryElement . appendChild ( typeElement ) ;
You can’t perform that action at this time.
0 commit comments