Revert "refactor: remove unnecessary type assertion"

This reverts commit 33d3c460c5.
This commit is contained in:
Walid 2026-07-03 00:06:50 +06:00
parent 33d3c460c5
commit febf4d4773

View file

@ -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 {