1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-18 18:35:58 +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();
}