aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/SelectionManager.ts
diff options
context:
space:
mode:
authorSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2019-10-17 02:53:34 -0400
committerSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2019-10-17 02:53:34 -0400
commit91868727ea6e6443a916cf720d477b1136601b2f (patch)
treedd4f0ebd769f69394d94164bdc02cf874e9c8170 /src/client/util/SelectionManager.ts
parent7b43e349d31c911ab43763a4ff7179b3778a2d96 (diff)
refactored handlers
Diffstat (limited to 'src/client/util/SelectionManager.ts')
-rw-r--r--src/client/util/SelectionManager.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/util/SelectionManager.ts b/src/client/util/SelectionManager.ts
index df1b46b33..398c90ddb 100644
--- a/src/client/util/SelectionManager.ts
+++ b/src/client/util/SelectionManager.ts
@@ -54,7 +54,10 @@ export namespace SelectionManager {
let stored = StrCast(targetDoc.backgroundColor);
stored.length > 0 && (targetColor = stored);
}
- InkingControl.Instance.updateSelectedColor(targetColor);
+ const { Instance } = InkingControl;
+ if (Instance) {
+ Instance.updateSelectedColor(targetColor);
+ }
}, { fireImmediately: true });
export function DeselectDoc(docView: DocumentView): void {