Skip to content

Commit

Permalink
Try Fixing require of the package
Browse files Browse the repository at this point in the history
  • Loading branch information
hovancik committed Oct 12, 2023
1 parent b1c5554 commit 6a66704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/dndManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DndManager extends EventEmitter {
focusAssist = require('windows-focus-assist').getFocusAssist().value
} catch (e) { focusAssist = -1 } // getFocusAssist() throw an error if OS isn't windows

return require('@meetfranz/electron-notification-state').getDoNotDisturb() || (focusAssist !== -1 && focusAssist !== 0)
return require('electron-notification-state').getDoNotDisturb() || (focusAssist !== -1 && focusAssist !== 0)

Check warning on line 37 in app/utils/dndManager.js

View check run for this annotation

Codecov / codecov/patch

app/utils/dndManager.js#L37

Added line #L37 was not covered by tests
} else {
return false
}
Expand Down

0 comments on commit 6a66704

Please sign in to comment.