viewer: hide share for videos

pull/175/head
Varun Patil 2022-11-07 05:44:13 -08:00
parent ecb42d335f
commit 86de94c210
1 changed files with 5 additions and 1 deletions

View File

@ -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 */