change const to let to avoid TypeError
This commit is contained in:
parent
e75d26259a
commit
3481ef2307
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class CardCreator {
|
||||||
*/
|
*/
|
||||||
async createCard(charaId, customImage) {
|
async createCard(charaId, customImage) {
|
||||||
const characterInfoUrl = `https://xivapi.com/character/${charaId}?extended=1&data=FC,mimo`;
|
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) {
|
if (!response.ok) {
|
||||||
// Retry once if the request fails
|
// Retry once if the request fails
|
||||||
response = await fetch(characterInfoUrl);
|
response = await fetch(characterInfoUrl);
|
||||||
|
|
Loading…
Reference in a new issue