Skip to content

Commit

Permalink
Generate uniq screenshot name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Nov 21, 2019
1 parent 0eaa9c7 commit d4bff70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internals/buildversion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
560
563
2 changes: 1 addition & 1 deletion src/routes/cover.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class Cover extends React.Component {
onCapturePage() {
extensionHelper.capturePage(this.state.item.link, (item)=>{
if (item.dataURI){
urltoFile(item.link, 'screenshot.jpg', 'image/jpeg')
urltoFile(item.link, `${new Date().getTime()}.jpg`, 'image/jpeg')
.then(file=>{
bookmarkActions.uploadCover({
_id: this.state.item._id,
Expand Down

0 comments on commit d4bff70

Please sign in to comment.