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') } }