# HG changeset patch # User Marcin Lulek # Date 2016-08-02 15:25:51 # Node ID 51d8584b4352d76dc9fb51acde0d93e8c5a62002 # Parent b716baea6547cf8e9fe96c881d29b9b5646871b7 appenlight client: do not set empty server urls diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html --- a/rhodecode/templates/base/root.html +++ b/rhodecode/templates/base/root.html @@ -69,7 +69,9 @@ c.template_context['visual']['default_re var APPENLIGHT = { enabled: ${'true' if getattr(c, 'appenlight_enabled', False) else 'false'}, key: '${getattr(c, "appenlight_api_public_key", "")}', - serverUrl: '${getattr(c, "appenlight_server_url", "")}', + % if getattr(c, 'appenlight_server_url', None): + serverUrl: '${getattr(c, "appenlight_server_url", "")}', + % endif requestInfo: { % if getattr(c, 'rhodecode_user', None): ip: '${c.rhodecode_user.ip_addr}',