Skip to content

Commit

Permalink
rewind ability
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rge committed Aug 3, 2018
1 parent 3957070 commit 3732f8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const init = () => {
}

ret = globalShortcut.register('MediaPreviousTrack', () => {
externalAPI.prev();
if (externalAPI.getProgress().position >= 5) {
externalAPI.setPosition(0);
} else {
externalAPI.prev();
}
});
if (!ret) {
dialog.showErrorBox('Cant bind global shortcut', 'Cant bind MediaPreviousTrack. Closing tab. \nPossible second opened tab?');
Expand Down

0 comments on commit 3732f8d

Please sign in to comment.