[dyad] wrote 6 file(s)

This commit is contained in:
Michael committed 2025-11-06 14:03:16 +01:00
1 parent f45cfb36e0
commit dd58d35af7
6 files changed
+116 -35

No files matched your search

+7 -2
View File
@@ -10,7 +10,7 @@ class App {
// Load initial data if authenticated
if (this.auth.token) {
this.notes.loadNotes();
if (this.auth.user.is_admin) {
if (this.auth.user && this.auth.user.is_admin) {
this.admin.loadUsers();
}
}
@@ -18,4 +18,9 @@ class App {
}
// Initialize main app
window.app = new App();
window.app = new App();
// Initialize app when DOM is loaded
document.addEventListener('DOMContentLoaded', () => {
window.app.init();
});