setBadge.js setBadge = function (text) { if (process.platform === "darwin") { app.dock.setBadge("" + text); } else if (process.platform === "win32") { var win = remote.getCurrentWindow(); if (text === "") { win.setOverlayIcon(null, ""); return; } // Create badge var canvas = document.createElement("canvas"); canvas.height = 140; canvas.width = 140; var ctx = canvas.getContext("2d"); ctx.fillStyle