alex/v2-file-notice: quick note when trying to open a v1 file (#1177)
This commit is contained in:
parent
bd124dc308
commit
784b4503aa
1 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,13 @@ export async function openFromFileSystem(): Promise<null | {
|
|||
|
||||
// Parse
|
||||
const file: TDFile = JSON.parse(json)
|
||||
if ('tldrawFileFormatVersion' in file) {
|
||||
alert(
|
||||
// todo: update this message when we do the actual migration
|
||||
'This file was created in a newer version of tldraw. Please visit beta.tldraw.com to open it.'
|
||||
)
|
||||
return null
|
||||
}
|
||||
|
||||
const fileHandle = blob.handle ?? null
|
||||
|
||||
|
|
Loading…
Reference in a new issue