From aa840db336274927a2f22d18cf8a59b3bcc30911 Mon Sep 17 00:00:00 2001 From: Index Date: Thu, 25 Jul 2024 23:38:00 -0500 Subject: [PATCH] feat: re-try if ratelimited for multi-whitelist feature --- js/create/place-access.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/create/place-access.js b/js/create/place-access.js index 65a0b06..09b1615 100755 --- a/js/create/place-access.js +++ b/js/create/place-access.js @@ -192,7 +192,7 @@ function MultiWhitelist(){ MultiWhitelistSubmitButton.previousElementSibling.disabled = true if (Usernames.length > 0) { for (let username of Usernames) { - const WhitelistAddRequest = (await (await fetch('https://polytoria.com/api/create/whitelist', { + Utilities.RatelimitRepeatingFetch('https://polytoria.com/api/create/whitelist', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -201,7 +201,7 @@ function MultiWhitelist(){ placeID: PlaceID, username: username }) - })).json()) + }) } window.location.reload()