prompt when loading external scene before overriding local one (#1862)

This commit is contained in:
David Luzar 2020-07-08 22:55:26 +02:00 committed by GitHub
parent 1b9b824c70
commit d5e7d08586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 15 deletions

View file

@ -367,7 +367,6 @@ export const loadScene = async (id: string | null, privateKey?: string) => {
// the private key is used to decrypt the content from the server, take
// extra care not to leak it
data = await importFromBackend(id, privateKey);
window.history.replaceState({}, "Excalidraw", window.location.origin);
} else {
data = restoreFromLocalStorage();
}