Update qrcode.js
parent
aac7eeba40
commit
7119dcad12
|
|
@ -73,11 +73,7 @@ async function sendToControlnet(img, tab, index) {
|
||||||
|
|
||||||
function setImage(input, list) {
|
function setImage(input, list) {
|
||||||
try {
|
try {
|
||||||
if (input.previousElementSibling &&
|
input.previousElementSibling?.previousElementSibling?.querySelector("button[aria-label='Clear']")?.click()
|
||||||
input.previousElementSibling.previousElementSibling &&
|
|
||||||
input.previousElementSibling.previousElementSibling.querySelector("button[aria-label='Clear']")) {
|
|
||||||
input.previousElementSibling.previousElementSibling.querySelector("button[aria-label='Clear']").click()
|
|
||||||
}
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue