aboutsummaryrefslogtreecommitdiff
path: root/src/client/DocServer.ts
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-08-03 16:27:09 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-08-03 16:27:09 -0400
commitf21febd2fff86c9f4a537cd81adb6de98eaec929 (patch)
tree2685d95e3a14ce5ee2db7fb37e9c3abef9d1017c /src/client/DocServer.ts
parent76b8ce516103a469d36e876ddf3dd5b53f09c734 (diff)
parentfb8150f01232a3f8e9333f9ed7012b6982b00c24 (diff)
merge with new ui
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;