Skip to content

Commit

Permalink
Update page-loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBacou authored Sep 26, 2024
1 parent 6ae7922 commit 93588c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/js/pages/page-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ var module = {};
content.navbar.html = await module.navbar(content.navbar.json)
content.template.html = await module.get(`${files.template.html}`)

module.write(content.template.html).then(() => {
document.getElementsByName('navbar-box')[0].innerHTML = content.navbar.html
})
await module.write(content.template.html)

await document.getElementsByName('navbar-box')[0].innerHTML = content.navbar.html

} catch (error) {
console.error("Erreur lors du chargement du module JS", error);
Expand Down

0 comments on commit 93588c5

Please sign in to comment.