GUAC-1053: Ensure new preferences are set even if the user already had preferences from an older version.

This commit is contained in:
Michael Jumper
2015-04-23 11:22:48 -07:00
parent 07789a08ac
commit b114dbaf01

View File

@@ -127,7 +127,7 @@ angular.module('settings').factory('preferenceService', ['$injector',
if (localStorage) {
var preferencesJSON = localStorage.getItem(GUAC_PREFERENCES_STORAGE_KEY);
if (preferencesJSON)
service.preferences = JSON.parse(preferencesJSON);
angular.extend(service.preferences, JSON.parse(preferencesJSON));
}
}