Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
doNotDisturb() {
if (platform === 'win32' && require('windows-quiet-hours').getIsQuietHours()) {
return true;
}
if (platform === 'darwin' && require('macos-notification-state').getDoNotDisturb()) {
return true;
}
return false;
}
doNotDisturb() {
if (platform === 'win32' && require('windows-quiet-hours').getIsQuietHours()) {
return true;
}
if (platform === 'darwin' && require('macos-notification-state').getDoNotDisturb()) {
return true;
}
return false;
}