mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-03 22:22:54 +00:00
Two hot fixes
This commit is contained in:
@@ -166,6 +166,9 @@ export function getProjectRoot(project: ProjectMeta) {
|
||||
if (project.storage?.type === 'indexeddb') {
|
||||
return project.storage.rootUri
|
||||
}
|
||||
if (project.name === DRAFT_PROJECT.name) {
|
||||
return DRAFTS_URI
|
||||
}
|
||||
throw new Error(`Unsupported project storage ${project.storage?.type}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user