diff --git a/src/static/js/cssmanager.js b/src/static/js/cssmanager.js index 9d6f277ed..b7af85d4d 100644 --- a/src/static/js/cssmanager.js +++ b/src/static/js/cssmanager.js @@ -43,7 +43,9 @@ const makeCSSManager = (emptyStylesheetTitle, doc) => { for (const s of win.document.styleSheets) { if (s.title === title) return s; } - return null; + const err = new Error(`no sheet with title ${title} in doc ${doc}`) + console.error(err); + throw err; }; const browserSheet = getSheetByTitle(emptyStylesheetTitle);