change const to let to avoid TypeError

This commit is contained in:
ArcaneDisgea 2021-08-21 16:28:08 -04:00
parent e75d26259a
commit 3481ef2307

View file

@ -301,7 +301,7 @@ class CardCreator {
*/
async createCard(charaId, customImage) {
const characterInfoUrl = `https://xivapi.com/character/${charaId}?extended=1&data=FC,mimo`;
const response = await fetch(characterInfoUrl);
let response = await fetch(characterInfoUrl);
if (!response.ok) {
// Retry once if the request fails
response = await fetch(characterInfoUrl);