From f8f34ef605e41626484650f7176f7322bbae288a Mon Sep 17 00:00:00 2001 From: Abhorrent_Anger Date: Sun, 16 Aug 2026 20:51:55 +0300 Subject: [PATCH] isArray call fix --- ManncoStoreGiveawayAutojoiner.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ManncoStoreGiveawayAutojoiner.user.js b/ManncoStoreGiveawayAutojoiner.user.js index 9d65201..ba57311 100644 --- a/ManncoStoreGiveawayAutojoiner.user.js +++ b/ManncoStoreGiveawayAutojoiner.user.js @@ -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;