From 3540ee7e5afb825709e275eccbf6c8a20f3ee24a Mon Sep 17 00:00:00 2001 From: Jake Archibald Date: Fri, 2 Feb 2024 10:14:00 +0000 Subject: [PATCH] Use generic global reference in docs This is especially required for `disableWorkerMessageHandler`, since you'd never reference that from `window`. --- components/prism-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/prism-core.js b/components/prism-core.js index 1259f23e07..22f26df59a 100644 --- a/components/prism-core.js +++ b/components/prism-core.js @@ -38,7 +38,7 @@ var Prism = (function (_self) { * empty Prism object into the global scope before loading the Prism script like this: * * ```js - * window.Prism = window.Prism || {}; + * globalThis.Prism = globalThis.Prism || {}; * Prism.manual = true; * // add a new