kopia lustrzana https://github.com/Tldraw/Tldraw
Don't expose editor in readonly rooms.
rodzic
e94e706850
commit
5359aacc05
|
@ -131,8 +131,10 @@ export function MultiplayerEditor({
|
|||
|
||||
const handleMount = useCallback(
|
||||
(editor: Editor) => {
|
||||
;(window as any).app = editor
|
||||
;(window as any).editor = editor
|
||||
if (!isReadonly) {
|
||||
;(window as any).app = editor
|
||||
;(window as any).editor = editor
|
||||
}
|
||||
editor.updateInstanceState({
|
||||
isReadonly,
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue