Use generic global reference in docs

This is especially required for `disableWorkerMessageHandler`, since you'd never reference that from `window`.
This commit is contained in:
Jake Archibald 2024-02-02 10:14:00 +00:00 committed by GitHub
parent 59e5a34713
commit 3540ee7e5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 <script> to load Prism's script
* ```
@ -60,7 +60,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.disableWorkerMessageHandler = true;
* // Load Prism's script
* ```