INNER CODE UNIT · TypeScript
setNotificationsMute
sindresorhus/caprine · source/index.ts:248
function setNotificationsMute(status: boolean): void {
const label = 'Mute Notifications';
const muteMenuItem = Menu.getApplicationMenu()!.getMenuItemById('mute-notifications')!;
config.set('notificationsMuted', status);
muteMenuItem.checked = status;
if (is.macos) {
const item = dockMenu.items.find(x => x.label === label);
item!.checked = status;
}
}
function createMainWindow(): BrowserWindow {
const lastWindowState = config.get('lastWindowState');
// Messenger or Work Chat
const mainURL = config.get('useWorkChat')