mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
ci: remove comments and console logs
This commit is contained in:
parent
c803e11505
commit
f1e0bfebfc
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user