mirror of
https://github.com/Luzifer/automate-cookie-clicker.git
synced 2024-12-22 18:21:18 +00:00
Fix syntax errors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fa879128e7
commit
f4510ac58a
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Automate CookieClicker
|
// @name Automate CookieClicker
|
||||||
// @namespace https://luzifer.io/
|
// @namespace https://luzifer.io/
|
||||||
// @version 0.7.2
|
// @version 0.7.3
|
||||||
// @description Automate everything!
|
// @description Automate everything!
|
||||||
// @author Knut Ahlers <knut@ahlers.me>
|
// @author Knut Ahlers <knut@ahlers.me>
|
||||||
// @source https://github.com/Luzifer/automate-cookie-clicker
|
// @source https://github.com/Luzifer/automate-cookie-clicker
|
||||||
|
@ -110,9 +110,9 @@ function getMaxBuy() {
|
||||||
|
|
||||||
function upgradeFilter(idx) {
|
function upgradeFilter(idx) {
|
||||||
var onClickHandler = $(this).attr('onclick');
|
var onClickHandler = $(this).attr('onclick');
|
||||||
if onClickHandler == null {
|
if (onClickHandler == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var upgradeID = parseInt(onClickHandler.replace(/^.*\[([0-9]+)\].*$/, "$1"))
|
var upgradeID = parseInt(onClickHandler.replace(/^.*\[([0-9]+)\].*$/, "$1"));
|
||||||
return !blockingUpgrades.includes(upgradeID);
|
return !blockingUpgrades.includes(upgradeID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue