[+] Open url for videos
This commit is contained in:
+3
-1
@@ -169,8 +169,10 @@ export default class App extends Vue
|
|||||||
|
|
||||||
onImageClick(artwork: Artwork, index: number)
|
onImageClick(artwork: Artwork, index: number)
|
||||||
{
|
{
|
||||||
|
if (artwork.video) open(artwork.url, '_blank');
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.$refs.ps.show(this.swipeItems(), {index: index});
|
else this.$refs.ps.show(this.swipeItems(), {index: index});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user