mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
feat: allow download of current project
This commit is contained in:
committed by
Carlos Valente
parent
cfb76153a0
commit
f1cac8d1c4
@@ -51,6 +51,13 @@ function init() {
|
||||
ensureDirectory(resolveCorruptDirectory);
|
||||
}
|
||||
|
||||
export async function getCurrentProject() {
|
||||
const filename = await getLastLoadedProject();
|
||||
const pathToFile = getPathToProject(filename);
|
||||
|
||||
return { filename, pathToFile };
|
||||
}
|
||||
|
||||
/**
|
||||
* Private function loads a demo project
|
||||
* to be composed in the loading functions
|
||||
|
||||
Reference in New Issue
Block a user