// 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();
+ }
}
};