Skip to content

Commit

Permalink
Update translations.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherPillow committed Nov 5, 2023
1 parent 133a13a commit 3f80d74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const translations = await new Promise(async (resolve, reject) => {
if (response1.ok) {
// If the first URL exists, return its JSON content
resolve(await response1.json())
return;
}
} catch (error) {
// An error occurred while fetching the first URL
Expand All @@ -20,6 +21,7 @@ const translations = await new Promise(async (resolve, reject) => {

if (response2.ok) {
resolve(await response2.json())
return;
}
} catch (error) {
alert('Failed to load both local translations and English.')
Expand Down

0 comments on commit 3f80d74

Please sign in to comment.