diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-08 01:53:11 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-07-08 01:53:11 +0530 |
commit | 5e9a710d046150aaea6d8d50e1ecc271f44ca50b (patch) | |
tree | fff94fc835035b8122ff6d74cce5dc9c49968394 /src/client/util/LinkManager.ts | |
parent | f4830de4f8c4794ec98e54be9ba8730e46155c35 (diff) | |
parent | 1442a7769becaec7aeaae437c6eae9107ec90750 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into acls_uv
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()); } |