Update CUnleash.js
This commit is contained in:
14
CUnleash.js
14
CUnleash.js
@@ -24,7 +24,7 @@ setInterval(function () {
|
|||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
let state = true; // initial state is ON
|
let state = false;
|
||||||
let intervalId;
|
let intervalId;
|
||||||
|
|
||||||
document.addEventListener("keydown", function (event) {
|
document.addEventListener("keydown", function (event) {
|
||||||
@@ -57,12 +57,12 @@ setInterval(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Wait for the Game object to be defined, then start the auto-clicker
|
// Wait for the Game object to be defined, then start the auto-clicker
|
||||||
const waitIntervalId = setInterval(function () {
|
// const waitIntervalId = setInterval(function () {
|
||||||
if (typeof Game !== "undefined") {
|
// if (typeof Game !== "undefined") {
|
||||||
clearInterval(waitIntervalId);
|
// clearInterval(waitIntervalId);
|
||||||
startAutoClicker();
|
// startAutoClicker();
|
||||||
}
|
// }
|
||||||
}, 1000);
|
// }, 1000);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// setInterval(function() {
|
// setInterval(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user