mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-22 14:48:18 +02:00
[dyad] wrote 6 file(s)
This commit is contained in:
1 parent
f45cfb36e0
commit
dd58d35af7
6 files changed
+116
-35
No files matched your search
+7
-2
@@ -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();
|
||||
});
|
||||
Reference in new issue
Block a user