isArray call fix
This commit is contained in:
parent
f591963fb6
commit
f8f34ef605
@ -1,7 +1,7 @@
|
||||
// ==UserScript==
|
||||
// @name Mann Co. Store Giveaway Autojoiner
|
||||
// @namespace http://tampermonkey.net/
|
||||
// @version 2026-08-17
|
||||
// @version 2026-08-18
|
||||
// @description Tries to join giveaways on page load
|
||||
// @author Abhorrent_Anger
|
||||
// @include /^https?:\/\/mannco\.store\/giveaways.?$/
|
||||
@ -49,7 +49,7 @@ function getTokenFromCookie(tokenName) {
|
||||
let authArray = getCookieValue(tokenName);
|
||||
let decodedAuthArray = decodeURIComponent(authArray);
|
||||
let array = JSON.parse(decodedAuthArray)
|
||||
if (array.isArray()) {
|
||||
if (Array.isArray(array)) {
|
||||
return array['token'];
|
||||
}
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user