From 0cd115f8f05d30fdef26b5ba6819b4b9197b09d3 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Tue, 13 Jan 2015 13:48:56 +0800 Subject: [PATCH] Fix refreshOnProfileChange not working. Fix #188. --- omega-web/src/coffee/popup.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omega-web/src/coffee/popup.coffee b/omega-web/src/coffee/popup.coffee index 84cbdda..1fbdae1 100644 --- a/omega-web/src/coffee/popup.coffee +++ b/omega-web/src/coffee/popup.coffee @@ -115,7 +115,7 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget, 'validResultProfiles', 'refreshOnProfileChange', 'externalProfile', 'proxyNotControllable' ]).then ([availableProfiles, currentProfileName, isSystemProfile, - validResultProfiles, refreshOnProfileChange, externalProfile, + validResultProfiles, refresh, externalProfile, proxyNotControllable]) -> $scope.proxyNotControllable = proxyNotControllable return if proxyNotControllable @@ -124,7 +124,7 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget, $scope.currentProfileName = currentProfileName $scope.isSystemProfile = isSystemProfile $scope.externalProfile = externalProfile - refreshOnProfileChange = refreshOnProfileChange + refreshOnProfileChange = refresh charCodeUnderscore = '_'.charCodeAt(0) profilesByNames = (names) ->