aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-02 11:19:15 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-08-02 11:19:15 -0500
commit4b6f417b3a582b680edc77e0c7d84aaf2d20b6aa (patch)
treef9db6a4f1e2695d6d8342218c336544c55eadc65 /src/client/DocServer.ts
parentf0698278717ba0399bca17951ead879107b99980 (diff)
parent1486b398071b3e9d9ac84edc74404ebadb69f67c (diff)
merge w master
Diffstat (limited to 'src/client/DocServer.ts')
-rw-r--r--src/client/DocServer.ts3
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;