From 3dbd6d8074c44d7cfb333c8b5a49de40e683af9a Mon Sep 17 00:00:00 2001 From: Bjoern Gruening Date: Wed, 8 Jun 2016 14:23:47 +0200 Subject: [PATCH] fix error if no user is logged in --- client/galaxy/scripts/layout/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/galaxy/scripts/layout/page.js b/client/galaxy/scripts/layout/page.js index a755b455a0f..c9d4732d6d6 100644 --- a/client/galaxy/scripts/layout/page.js +++ b/client/galaxy/scripts/layout/page.js @@ -136,11 +136,11 @@ var PageLayoutView = Backbone.View.extend( BaseMVC.LoggableMixin ).extend({ /** Check if the communication server is online and show the icon otherwise hide the icon */ _checkCommunicationServerOnline: function(){ - var host = window.Galaxy.config.communication_server_host, + var host = window.Galaxy.config.communication_server_host, port = window.Galaxy.config.communication_server_port, $chat_icon_element = $( "#show-chat-online" ); /** Check if the user has deactivated the communication in it's personal settings */ - if (window.Galaxy.user.attributes.preferences.communication_server === '1') { + if (window.Galaxy.user.attributes.preferences !== undefined && window.Galaxy.user.attributes.preferences.communication_server === '1') { // See if the configured communication server is available $.ajax({ url: host + ":" + port,