From 117895d586f006efe7bf3c55f51da2d8ae2de4b5 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Nov 2021 21:09:11 +0530 Subject: [PATCH] Allow failing on findLastWatch --- src/routes/WatchVideo.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/WatchVideo.vue b/src/routes/WatchVideo.vue index 5e7fea3..4eb2ae4 100644 --- a/src/routes/WatchVideo.vue +++ b/src/routes/WatchVideo.vue @@ -260,7 +260,11 @@ export default { }, async getVideoData () { - this.lastWatch = await findLastWatch(this.videoId) + try { + this.lastWatch = await findLastWatch(this.videoId) + } catch (e) { + console.error('Errored while finding last watched', e) + } const video = await this.fetchVideo() video.videoId = this.videoId