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:
MasterAcnolo
2026-08-05 22:16:15 +02:00
committed by MasterAcnolo
parent 321309e294
commit 3f3696e54e

View File

@@ -20,7 +20,7 @@ const activeNotifications = new Set();
function notifyDownloadFinished(folder, notifyEnabled = true) {
if (!notifyEnabled) return;
if (!folder) return;
const notif = new Notification({
title: "Freedom Loader",
body: "Your download is complete, click here to open it.",