Check for storyboard directory when using installation

This commit is contained in:
Luca 2020-08-31 20:13:49 +02:00
parent 66903d8002
commit c01d468411
1 changed files with 3 additions and 0 deletions

View File

@ -693,6 +693,9 @@ export default Vue.extend({
fs.mkdirSync('storyboards/')
}
} else {
if (!fs.existsSync(`${userData}/storyboards/`)) {
fs.mkdirSync(`${userData}/storyboards/`)
}
fileLocation = `${userData}/storyboards/${this.videoId}.vtt`
uriSchema = `file://${fileLocation}`
}