Skip to content

Commit

Permalink
Merge pull request #66 from mikevanis/master
Browse files Browse the repository at this point in the history
Download video from mobile and desktop devices
  • Loading branch information
andysheen authored Mar 2, 2021
2 parents 975b89b + 668399d commit 6faee5a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ class GalleryGrid extends React.Component {
</BrowserView>
</div>
}
{this.state.activeContent.endsWith(".mp4") &&
<div className="footer-content">
<p className="mr-auto">
<a href={this.state.activeContent} download={this.state.activeContent.substring(this.state.activeContent.lastIndexOf('/')+1)}>Download Video</a>
</p>
</div>
}
<Button variant="primary" className="btn-icon" onClick={this.handleModalExit}>
<Cancel/>
</Button>
Expand Down

0 comments on commit 6faee5a

Please sign in to comment.