|
|
@@ -43,7 +43,7 @@ const CLEAR_FONTS_EVENT = "single-file-clear-fonts";
|
|
|
|
|
|
const browser = globalThis.browser;
|
|
|
const addEventListener = (type, listener, options) => globalThis.addEventListener(type, listener, options);
|
|
|
-const dispatchEvent = event => globalThis.dispatchEvent(event);
|
|
|
+const dispatchEvent = event => { try { globalThis.dispatchEvent(event); } catch (error) { /* ignored */ } };
|
|
|
const CustomEvent = globalThis.CustomEvent;
|
|
|
const document = globalThis.document;
|
|
|
const Document = globalThis.Document;
|