Added manual group changing, stbility improvements.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
const { Notification } = require("electron");
|
||||
const path = require("path");
|
||||
const { store } = require("../electron-store");
|
||||
|
||||
function NewNotification(config) {
|
||||
return Notification({
|
||||
|
||||
icon: path.join(__dirname, "../../src/assets/logo512.png"),
|
||||
...config,
|
||||
});
|
||||
const enableNotifications = store.get("enableNotifications");
|
||||
if (enableNotifications) {
|
||||
Notification({
|
||||
icon: path.join(__dirname, "../../src/assets/logo512.png"),
|
||||
...config,
|
||||
}).show();
|
||||
}
|
||||
}
|
||||
exports.NewNotification = NewNotification;
|
||||
|
||||
Reference in New Issue
Block a user