mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-28 04:21:15 +02:00
refactor: notify.helpers.js logic. Add a timeout and a better notification management to avoid race condition on Unix Systems
This commit is contained in:
committed by
MasterAcnolo
parent
321309e294
commit
3f3696e54e
@@ -20,7 +20,7 @@ const activeNotifications = new Set();
|
|||||||
function notifyDownloadFinished(folder, notifyEnabled = true) {
|
function notifyDownloadFinished(folder, notifyEnabled = true) {
|
||||||
if (!notifyEnabled) return;
|
if (!notifyEnabled) return;
|
||||||
if (!folder) return;
|
if (!folder) return;
|
||||||
|
|
||||||
const notif = new Notification({
|
const notif = new Notification({
|
||||||
title: "Freedom Loader",
|
title: "Freedom Loader",
|
||||||
body: "Your download is complete, click here to open it.",
|
body: "Your download is complete, click here to open it.",
|
||||||
|
|||||||
Reference in New Issue
Block a user