ci: remove comments and console logs

This commit is contained in:
YSH 2024-06-11 22:33:11 -07:00
parent c803e11505
commit f1e0bfebfc

View File

@ -82,9 +82,8 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
if (!opts.prevent_screen_sleep_during_generation || wakeLock) return; if (!opts.prevent_screen_sleep_during_generation || wakeLock) return;
try { try {
wakeLock = await navigator.wakeLock.request('screen'); wakeLock = await navigator.wakeLock.request('screen');
console.log('Wake Lock is active.');
} catch (err) { } catch (err) {
console.log('Wake Lock is not supported.'); console.error('Wake Lock is not supported.');
} }
}; };
@ -92,7 +91,6 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
if (!opts.prevent_screen_sleep_during_generation || !wakeLock) return; if (!opts.prevent_screen_sleep_during_generation || !wakeLock) return;
try { try {
await wakeLock.release(); await wakeLock.release();
console.log('Wake Lock is released.');
wakeLock = null; wakeLock = null;
} catch (err) { } catch (err) {
console.error('Wake Lock release failed', err); console.error('Wake Lock release failed', err);
@ -123,7 +121,6 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
}; };
var funProgress = function(id_task) { var funProgress = function(id_task) {
// Request the wake lock at the start of the progress
requestWakeLock(); requestWakeLock();
request("./internal/progress", {id_task: id_task, live_preview: false}, function(res) { request("./internal/progress", {id_task: id_task, live_preview: false}, function(res) {
if (res.completed) { if (res.completed) {