mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-24 07:30:19 +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();
|
|
}
|