1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-11 15:26:13 +01:00
upscayl/electron/utils/show-notification.ts

12 lines
301 B
TypeScript
Raw Normal View History

import { Notification } from "electron/main";
2024-01-16 10:22:31 +01:00
import { turnOffNotifications } from "./config-variables";
export default function showNotification(title: string, body: string) {
2024-01-16 08:33:43 +01:00
if (turnOffNotifications) return;
new Notification({
title,
body,
closeButtonText: "Close",
}).show();
}