From ecd3ec8e1b0f630c2f88449b544415017b25924b Mon Sep 17 00:00:00 2001 From: Josh McLeod Date: Fri, 24 Jul 2026 11:29:50 -0400 Subject: [PATCH] [SENTRY NK] Avoid eager CSSStyleSheet construction in PDF viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes C12-NK Sentry: https://rolemodel-software.sentry.io/issues/C12-NK createThemeStyleSheet called new CSSStyleSheet() directly, which throws TypeError: Illegal constructor on browsers without constructable stylesheet support (Safari < 16.4) — crashing the rm-pdf-viewer element constructor. Return a lazy Lit CSSResult instead and apply it with Lit's adoptStyles, which falls back to