Skip to content

Commit

Permalink
viewer: hide share for videos
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Nov 7, 2022
1 parent ecb42d3 commit 86de94c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 86de94c

Please sign in to comment.