Remove find 'widget2' and add debug
Fix
This commit is contained in:
parent
0099460e4d
commit
e0f2654cc2
@ -60,7 +60,6 @@ await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).t
|
|||||||
if (!disableChest) {
|
if (!disableChest) {
|
||||||
clickFirstButtonByClassName("chest")
|
clickFirstButtonByClassName("chest")
|
||||||
}
|
}
|
||||||
document.getElementById("widget2").dispatchEvent(new MouseEvent("click"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pickCard() {
|
function pickCard() {
|
||||||
@ -85,6 +84,7 @@ await fetch("https://code.jquery.com/jquery-3.6.0.min.js").then(x => x.text()).t
|
|||||||
else {
|
else {
|
||||||
let swal2msg = document.getElementsByClassName("popup-alert__message")
|
let swal2msg = document.getElementsByClassName("popup-alert__message")
|
||||||
if (swal2msg.length > 0) {
|
if (swal2msg.length > 0) {
|
||||||
|
console.log(swal2msg[0].innerHTML)
|
||||||
if (swal2msg[0].innerHTML == "Đã đạt đến giới hạn Rương đếm ngược hàng ngày") {
|
if (swal2msg[0].innerHTML == "Đã đạt đến giới hạn Rương đếm ngược hàng ngày") {
|
||||||
disableChest = true
|
disableChest = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user