all task completed message
This commit is contained in:
5
samy.js
5
samy.js
@@ -29,7 +29,7 @@ function logProgress(label, isSuccess) {
|
||||
if (completedTasks === totalTasks) {
|
||||
const finalMsg = document.createElement("div");
|
||||
finalMsg.style.marginTop = "10px";
|
||||
finalMsg.innerHTML = `<strong> All tasks complete (${completedTasks}/${totalTasks})</strong>`;
|
||||
finalMsg.innerHTML = `<strong> All tasks completed (${completedTasks}/${totalTasks})</strong>`;
|
||||
statusBox?.appendChild(finalMsg);
|
||||
|
||||
document.title = ` ScriptMonkey - Complete (${completedTasks}/${totalTasks})`;
|
||||
@@ -333,6 +333,9 @@ async function triggerInstall() {
|
||||
console.error("triggerInstall fatal error:", e);
|
||||
} finally {
|
||||
runBtn.disabled = false;
|
||||
if (totalTasks > 0) {
|
||||
console.info(`[Info] All tasks completed (${completedTasks}/${totalTasks})`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user