Skip to content

Commit

Permalink
toString + int
Browse files Browse the repository at this point in the history
  • Loading branch information
Miala-python committed Mar 15, 2024
1 parent c27cdb6 commit 24c84df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pl_load.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function pl_loaded() {
document.getElementById('pageContent').classList.remove('is-hidden');
} else {

document.getElementById('loading_progress').setAttribute("value", 90 + waitLibI);
document.getElementById('loading_progress').setAttribute("value", (90 + waitLibI).toString());
setTimeout(waitLib, waitLibI * 100);
}

Expand Down Expand Up @@ -232,7 +232,7 @@ if (pl_txt == 'toBEloaded') {
// Mettre à jour les paramètres pour la prochaine requête
params.pageToken = nextPageToken;

document.getElementById('loading_progress').setAttribute("value", (req_i / data.pageInfo.totalResults) * 100);
document.getElementById('loading_progress').setAttribute("value", parseInt((req_i / data.pageInfo.totalResults) * 100).toString());
} else {
// Gérer l'erreur
console.error("Une erreur est survenue: ", data.error);
Expand Down

0 comments on commit 24c84df

Please # to comment.