diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-07-13 16:18:54 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-07-13 16:18:54 +0800 |
commit | 1272cde12481ade17c78ef66520d43961356bffa (patch) | |
tree | c7048bca5a134bee402f1bc8b77576fda50a5001 /src/client/util/LinkManager.ts | |
parent | ec1f159d60695a3cc89327561f7c60c00a06366d (diff) | |
parent | 06ef30846b8014d6701caa86b264612ceabc27d1 (diff) |
Merge branch 'master' into presentation_updates
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r-- | src/client/util/LinkManager.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 749fabfcc..6da581f35 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -1,4 +1,4 @@ -import { Doc, DocListCast } from "../../fields/Doc"; +import { Doc, DocListCast, Opt } from "../../fields/Doc"; import { List } from "../../fields/List"; import { listSpec } from "../../fields/Schema"; import { Cast, StrCast } from "../../fields/Types"; @@ -23,6 +23,10 @@ import { Scripting } from "./Scripting"; export class LinkManager { private static _instance: LinkManager; + + + public static currentLink: Opt<Doc>; + public static get Instance(): LinkManager { return this._instance || (this._instance = new this()); } |