Merge pull request #22 from ArcaneDisgea/master

change const to let to avoid TypeError
This commit is contained in:
ArcaneDisgea 2021-08-21 16:45:00 -04:00 committed by GitHub
commit cf18fb572e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);