Skip to content

Commit

Permalink
Update get.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBacou authored Sep 22, 2024
1 parent 2456c22 commit 90cb76d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/js/pages/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ export async function get(file) {
try {
const response = await fetch(file);
if (response.ok) {
var content = await response.text();
return content
return response.text();
} else {
console.error('Erreur lors du chargement du fichier:', response.status);
}
Expand Down

0 comments on commit 90cb76d

Please sign in to comment.