From 4e5a57c72c486b9c3eb32213562d016776be9453 Mon Sep 17 00:00:00 2001 From: Tixie Date: Fri, 5 Apr 2019 04:05:11 +0200 Subject: [PATCH] fix(download): Redirect when there is no gif --- src/views/screens/download.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/screens/download.vue b/src/views/screens/download.vue index 7a9cd05..33e5f78 100644 --- a/src/views/screens/download.vue +++ b/src/views/screens/download.vue @@ -28,6 +28,14 @@ export default { this.$store.commit('stopDownloading') this.$router.push({ name: 'capture' }) } + }, + created () { + if (this.downloading.objectUrl === null) { + this.$router.push({ name: 'home' }) + } + }, + destroyed () { + this.$store.commit('stopDownloading') } }