User prefs exist check
This commit is contained in:
@@ -308,8 +308,10 @@ angular.module('app')
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.syncUserPreferences = function() {
|
this.syncUserPreferences = function() {
|
||||||
this.userPreferences.setDirty(true);
|
if(this.userPreferences) {
|
||||||
$rootScope.sync("syncUserPreferences");
|
this.userPreferences.setDirty(true);
|
||||||
|
$rootScope.sync("syncUserPreferences");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getUserPrefValue = function(key, defaultValue) {
|
this.getUserPrefValue = function(key, defaultValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user