diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-07 10:23:38 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-07 10:23:38 -0700 |
commit | ef00832c86c1f357757f16917f5caea05e7deab7 (patch) | |
tree | de65830b1cf3c3a196d0085b7556cbb62d7b7533 /src/client/util/LinkManager.ts | |
parent | 4fc843a84a3f3001f749d5152bdc491d8efe7f94 (diff) | |
parent | 3f704ee2941fef77dd0eafebeb0a6ffb0a946a8b (diff) |
merge with master
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()); } |