1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-13 08:11:11 +01:00
upscayl/electron/utils/show-notification.ts
2024-01-16 14:52:31 +05:30

12 lines
301 B
TypeScript

import { Notification } from "electron/main";
import { turnOffNotifications } from "./config-variables";
export default function showNotification(title: string, body: string) {
if (turnOffNotifications) return;
new Notification({
title,
body,
closeButtonText: "Close",
}).show();
}