From b119e2a5e2a9093800b4ef32d389c5106f43b6cc Mon Sep 17 00:00:00 2001 From: Jun Date: Fri, 25 Feb 2022 15:01:53 -0800 Subject: [PATCH] Update serialize-doctype.ts --- src/dom/serialize-doctype.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dom/serialize-doctype.ts b/src/dom/serialize-doctype.ts index 91dde8e..4b142d1 100644 --- a/src/dom/serialize-doctype.ts +++ b/src/dom/serialize-doctype.ts @@ -38,7 +38,8 @@ const createDocType = (doctype?: DocumentType | null): string => { let doctypePolicy: TrustedTypePolicy; if ((window as any).trustedTypes) { doctypePolicy = (window as any).trustedTypes.createPolicy('html2canvas', { - createHTML: (ignored: string, doctype?: DocumentType | null): TrustedHTML => { + // @ts-ignore + createHTML: (ignored: string, doctype?: DocumentType | null): string => { return createDocType(doctype); } });