mirror of
https://github.com/upscayl/upscayl.git
synced 2024-12-22 12:25:58 +01:00
12 lines
301 B
TypeScript
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();
|
|
}
|