Update templates/dashboard.html
Browse files- templates/dashboard.html +1 -1
 
    	
        templates/dashboard.html
    CHANGED
    
    | 
         @@ -15,7 +15,7 @@ 
     | 
|
| 15 | 
         
             
                    function logout() {
         
     | 
| 16 | 
         
             
                        fetch('/logout', { method: 'GET' })  // Call Flask logout route
         
     | 
| 17 | 
         
             
                            .then(response => {
         
     | 
| 18 | 
         
            -
                                window.location.href = "/ 
     | 
| 19 | 
         
             
                            })
         
     | 
| 20 | 
         
             
                            .catch(error => console.error("Logout failed", error));
         
     | 
| 21 | 
         
             
                    }
         
     | 
| 
         | 
|
| 15 | 
         
             
                    function logout() {
         
     | 
| 16 | 
         
             
                        fetch('/logout', { method: 'GET' })  // Call Flask logout route
         
     | 
| 17 | 
         
             
                            .then(response => {
         
     | 
| 18 | 
         
            +
                                window.location.href = "/logout";  // Redirect to login page
         
     | 
| 19 | 
         
             
                            })
         
     | 
| 20 | 
         
             
                            .catch(error => console.error("Logout failed", error));
         
     | 
| 21 | 
         
             
                    }
         
     |