Skip to content

Commit

Permalink
test global data access
Browse files Browse the repository at this point in the history
  • Loading branch information
lebalz committed Aug 2, 2024
1 parent 3eaa9af commit ef589bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/documents/Script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,6 +47,7 @@ export default class Script extends iDocument<DocumentType.Script> {
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 });
Expand Down

0 comments on commit ef589bd

Please sign in to comment.