2020-07-27 21:30:42 +02:00
|
|
|
const electron = require("electron")
|
|
|
|
const { useShim } = require("./patchNotifications");
|
|
|
|
const appSettings = electron.remote.getGlobal("appSettings")
|
|
|
|
|
2020-07-15 01:50:02 +02:00
|
|
|
module.exports = {
|
2020-07-27 21:30:42 +02:00
|
|
|
NotificationsUseShim: (value) => {
|
|
|
|
if(![true, false].includes(value))return
|
|
|
|
appSettings.set("DEFAULT_NOTIFICATIONS", !value)
|
|
|
|
appSettings.save()
|
|
|
|
useShim(value)
|
|
|
|
}
|
2020-07-15 01:50:02 +02:00
|
|
|
}
|