diff --git a/src/models/documents/Script.ts b/src/models/documents/Script.ts index 05160090..7a99bf24 100644 --- a/src/models/documents/Script.ts +++ b/src/models/documents/Script.ts @@ -21,6 +21,7 @@ import { DocumentType, Document as DocumentProps, ScriptData } from '@site/src/a import DocumentStore from '@site/src/stores/DocumentStore'; import siteConfig from '@generated/docusaurus.config'; import { ScriptMeta } from '@site/src/theme/CodeEditor/WithScript/ScriptContext'; +import globalData from '@generated/globalData'; // /** // * Set some configuration options @@ -46,6 +47,7 @@ export default class Script extends iDocument { this.showRaw = false; this.isLoaded = true; this.code = props.data.code ?? this.meta.initCode; + console.log(globalData); if (this.isVersioned) { // this.versions.push({ code: this.code, createdAt: new Date(), version: 1 });