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:
parent
59e5a34713
commit
3540ee7e5a
|
@ -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
|
||||
* ```
|
||||
|
|
Loading…
Reference in New Issue