diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-08-02 11:19:15 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-08-02 11:19:15 -0500 |
| commit | 4b6f417b3a582b680edc77e0c7d84aaf2d20b6aa (patch) | |
| tree | f9db6a4f1e2695d6d8342218c336544c55eadc65 /src/client/DocServer.ts | |
| parent | f0698278717ba0399bca17951ead879107b99980 (diff) | |
| parent | 1486b398071b3e9d9ac84edc74404ebadb69f67c (diff) | |
merge w master
Diffstat (limited to 'src/client/DocServer.ts')
| -rw-r--r-- | src/client/DocServer.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/DocServer.ts b/src/client/DocServer.ts index f5ee6da3c..6fa8cf909 100644 --- a/src/client/DocServer.ts +++ b/src/client/DocServer.ts @@ -9,7 +9,6 @@ import GestureOverlay from './views/GestureOverlay'; import MobileInkOverlay from '../mobile/MobileInkOverlay'; import { runInAction } from 'mobx'; import { ObjectField } from '../fields/ObjectField'; -import { getPlaygroundMode } from '../fields/util'; /** * This class encapsulates the transfer and cross-client synchronization of @@ -452,7 +451,7 @@ export namespace DocServer { } function _UpdateFieldImpl(id: string, diff: any) { - (!getPlaygroundMode()) && Utils.Emit(_socket, MessageStore.UpdateField, { id, diff }); + (!DocServer.Control.isReadOnly()) && Utils.Emit(_socket, MessageStore.UpdateField, { id, diff }); } let _UpdateField: (id: string, diff: any) => void = errorFunc; |
