mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
prompt when loading external scene before overriding local one (#1862)
This commit is contained in:
parent
1b9b824c70
commit
d5e7d08586
4 changed files with 69 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue