Skip to content

Commit

Permalink
Use generic global reference in docs
Browse files Browse the repository at this point in the history
This is especially required for `disableWorkerMessageHandler`, since you'd never reference that from `window`.
  • Loading branch information
jakearchibald committed Feb 2, 2024
1 parent 59e5a34 commit 3540ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/prism-core.js
Expand Up @@ -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
* ```
Expand All @@ -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
* ```
Expand Down

0 comments on commit 3540ee7

Please sign in to comment.