signal-desktop/app/dock_icon.js

17 lines
271 B
JavaScript

const { app } = require('electron');
const dockIcon = {};
dockIcon.show = () => {
if (process.platform === 'darwin') {
app.dock.show();
}
};
dockIcon.hide = () => {
if (process.platform === 'darwin') {
app.dock.hide();
}
};
module.exports = dockIcon;