mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge pull request #915 from excalidraw/fix_remote_pointers
remove remote pointers on client disconnect
This commit is contained in:
commit
37284c9174
7 changed files with 41 additions and 25 deletions
|
@ -36,7 +36,7 @@ export function restoreFromLocalStorage() {
|
|||
appState = JSON.parse(savedState) as AppState;
|
||||
// If we're retrieving from local storage, we should not be collaborating
|
||||
appState.isCollaborating = false;
|
||||
appState.collaboratorCount = 0;
|
||||
appState.collaborators = new Map();
|
||||
} catch {
|
||||
// Do nothing because appState is already null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue