From c01d468411863705ede4cc15e4a52e90d7678d8c Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 31 Aug 2020 20:13:49 +0200 Subject: [PATCH] Check for storyboard directory when using installation --- src/renderer/views/Watch/Watch.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/views/Watch/Watch.js b/src/renderer/views/Watch/Watch.js index bbaba014..de04e972 100644 --- a/src/renderer/views/Watch/Watch.js +++ b/src/renderer/views/Watch/Watch.js @@ -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}` }