mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-27 20:11: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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user