ya_sir
commited on
Update script.js
Browse files
script.js
CHANGED
@@ -364,7 +364,7 @@ console.log(progress.value)
|
|
364 |
// Call the function again after a delay if the status is 'generating'
|
365 |
setTimeout(() => checkProcessStatus(n), 2000);
|
366 |
} else {
|
367 |
-
if(data.nsfw
|
368 |
|
369 |
|
370 |
cn = false
|
@@ -374,6 +374,7 @@ console.log(progress.value)
|
|
374 |
|
375 |
console.log(data)
|
376 |
pi.innerText = "NSFW ERROR PLEASE CHANGE YOUR PROMPT";
|
|
|
377 |
}else{
|
378 |
src1 = data.a
|
379 |
src2 = data.b
|
@@ -409,6 +410,7 @@ console.log(progress.value)
|
|
409 |
console.error('An error occurred:', error);
|
410 |
cn = false
|
411 |
pi.innerText = 'an error occurred π';
|
|
|
412 |
});
|
413 |
}
|
414 |
|
|
|
364 |
// Call the function again after a delay if the status is 'generating'
|
365 |
setTimeout(() => checkProcessStatus(n), 2000);
|
366 |
} else {
|
367 |
+
if(data.nsfw!=null){
|
368 |
|
369 |
|
370 |
cn = false
|
|
|
374 |
|
375 |
console.log(data)
|
376 |
pi.innerText = "NSFW ERROR PLEASE CHANGE YOUR PROMPT";
|
377 |
+
document.getElementById('imshow').append(pi)
|
378 |
}else{
|
379 |
src1 = data.a
|
380 |
src2 = data.b
|
|
|
410 |
console.error('An error occurred:', error);
|
411 |
cn = false
|
412 |
pi.innerText = 'an error occurred π';
|
413 |
+
document.getElementById('imshow').append(pi)
|
414 |
});
|
415 |
}
|
416 |
|