From 8ee0b263e1e23ab6062a0fdd60bcf13e986400e8 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 18 Feb 2015 14:44:52 -0800 Subject: [PATCH] ui: Only set blank token if none set --- ui/javascripts/app/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/javascripts/app/router.js b/ui/javascripts/app/router.js index 77a4a8421..515371148 100644 --- a/ui/javascripts/app/router.js +++ b/ui/javascripts/app/router.js @@ -8,7 +8,9 @@ Ember.Application.initializer({ initialize: function(container, application) { application.set('settings', App.Settings.create()); - App.set('settings.token', ''); + if (App.get('settings.token') === undefined) { + App.set('settings.token', ''); + } } });