From 86de94c210914b5074c0cb073d9164ca900c7f4f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 7 Nov 2022 05:44:13 -0800 Subject: [PATCH] viewer: hide share for videos --- src/components/Viewer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Viewer.vue b/src/components/Viewer.vue index 751268dd..a780ac2c 100644 --- a/src/components/Viewer.vue +++ b/src/components/Viewer.vue @@ -625,7 +625,11 @@ export default class Viewer extends Mixins(GlobalMixin) { /** Does the browser support native share API */ get canShare() { - return "share" in navigator; + return ( + "share" in navigator && + this.currentPhoto && + !(this.currentPhoto.flag & this.c.FLAG_IS_VIDEO) + ); } /** Share the current photo externally */