Set badge count

This is displayed on the launcher icon on linux/mac

// FREEBIE
This commit is contained in:
lilia
2017-04-24 17:00:17 -07:00
committed by Scott Nonnenberg
parent d025b57656
commit ea930d53ae
3 changed files with 9 additions and 2 deletions

View File

@@ -8,6 +8,9 @@
const ipc = electron.ipcRenderer
window.config.locale_json = ipc.sendSync('locale-data');
window.setBadgeCount = function(count) {
ipc.send('set-badge-count', count);
};
/**
* Enables spell-checking and the right-click context menu in text editors.
* Electron (`webFrame.setSpellCheckProvider`) only underlines misspelled words;