Allow logout button to work where no Java app used
[guacamole.git] / src / main / webapp / scripts / interface.js
index 45f6590..824219e 100644 (file)
@@ -315,8 +315,12 @@ var GuacamoleUI = {
 
             // Logout after warning user about session disconnect
             if (confirm(GuacamoleUI.LOGOUT_PROMPT)) {
-                window.location.href = "logout";
-                GuacamoleUI.hideTouchMenu();
+                if(1 == window.SELF_CLOSE){
+                    window.close();
+                }else{
+                    window.location.href = "logout";
+                    GuacamoleUI.hideTouchMenu();
+                }
             }
             
         };