ferment
Version:
Peer-to-peer audio publishing and streaming application. Like SoundCloud but decentralized. A mashup of ssb, webtorrent and electron.
14 lines (13 loc) • 356 B
JavaScript
var electron = require('electron')
module.exports = function (windows, openMainWindow) {
if (electron.app.makeSingleInstance((commandLine, workingDirectory) => {
if (windows.main) {
if (windows.main.isMinimized()) windows.main.restore()
windows.main.focus()
} else {
openMainWindow()
}
})) {
electron.app.quit()
}
}