2020-09-05 22:50:45 +02:00
|
|
|
const electron = require("electron")
|
|
|
|
const { useShim } = require("./patchNotifications");
|
|
|
|
const appSettings = electron.remote.getGlobal("appSettings")
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
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
|
|
|
}
|