13 lines
304 B
JavaScript
13 lines
304 B
JavaScript
var ipc = require('electron').ipcRenderer;
|
|
|
|
var setElectronBadge = function(value) {
|
|
if (ipc && typeof ipc.send === 'function') {
|
|
ipc.send('badge', value);
|
|
}
|
|
};
|
|
|
|
global.setElectronBadge = setElectronBadge;
|
|
|
|
// Let Glowing Bear know it's running as an electron app
|
|
window.is_electron = 1;
|