diff --git a/frontend/app.js b/frontend/app.js index a8a8267..9fa6782 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -3,6 +3,8 @@ (function () { "use strict"; + const APP_VERSION = "1.5.0"; + // --------------------------------------------------------------------------- // State // --------------------------------------------------------------------------- @@ -4762,29 +4764,68 @@ function showWelcome() { hideProgressBar(); - // Ensure the dashboard container exists (it might have been wiped by renderFile) + // Ensure the dashboard container exists and has the correct structure (it might have been wiped by renderFile or be an old version) const area = document.getElementById("content-area"); - if (area && !document.getElementById("dashboard-home")) { + const home = document.getElementById("dashboard-home"); + const bookmarksSection = document.getElementById("dashboard-bookmarks-section"); + + if (area && (!home || !bookmarksSection)) { area.innerHTML = ` -
Épinglez des fichiers pour les retrouver ici.