viewer: hide share for videos
parent
ecb42d335f
commit
86de94c210
|
@ -625,7 +625,11 @@ export default class Viewer extends Mixins(GlobalMixin) {
|
||||||
|
|
||||||
/** Does the browser support native share API */
|
/** Does the browser support native share API */
|
||||||
get canShare() {
|
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 */
|
/** Share the current photo externally */
|
||||||
|
|
Loading…
Reference in New Issue