diff --git a/src/App.ts b/src/App.ts index 8231e7d..93a3bed 100644 --- a/src/App.ts +++ b/src/App.ts @@ -169,8 +169,10 @@ export default class App extends Vue onImageClick(artwork: Artwork, index: number) { + if (artwork.video) open(artwork.url, '_blank'); + // @ts-ignore - this.$refs.ps.show(this.swipeItems(), {index: index}); + else this.$refs.ps.show(this.swipeItems(), {index: index}); } }