From febf4d4773b0d2c109c7d336d612d080f90f3a14 Mon Sep 17 00:00:00 2001 From: Walid Date: Fri, 3 Jul 2026 00:06:50 +0600 Subject: [PATCH] Revert "refactor: remove unnecessary type assertion" This reverts commit 33d3c460c530463e99cd7ba8124691cee0e19a06. --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index c6dd626..b5593d3 100644 --- a/main.ts +++ b/main.ts @@ -1115,7 +1115,7 @@ function getMathJaxCSS(): string { let adoptedCSS = ""; try { - const sheets = activeDocument.adoptedStyleSheets ?? []; + const sheets = (activeDocument as Document).adoptedStyleSheets ?? []; adoptedCSS = sheets .map((sheet) => { try {