Created
June 20, 2018 19:17
-
-
Save astrotars/a8a58d0eee0b3be7b2fdd1daab5f578d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isElectron()) { | |
if (context.playing) { | |
window.ipcRenderer.send('media-controls', { | |
type: 'play', | |
title: `${episode.title} - ${episode.podcast.title}`, | |
}); | |
} else { | |
window.ipcRenderer.send('media-controls', { | |
type: 'pause', | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment