forked from Archives/Athou_commafeed
save readingmode when changed
This commit is contained in:
@@ -194,6 +194,12 @@ module.directive('toolbar', function($state, $stateParams, $route, $location,
|
|||||||
});
|
});
|
||||||
|
|
||||||
$scope.settingsService = SettingsService;
|
$scope.settingsService = SettingsService;
|
||||||
|
$scope.$watch('settingsService.settings.readingMode', function(newValue,
|
||||||
|
oldValue) {
|
||||||
|
if (newValue && oldValue && newValue != oldValue) {
|
||||||
|
SettingsService.save();
|
||||||
|
}
|
||||||
|
});
|
||||||
$scope.refresh = function() {
|
$scope.refresh = function() {
|
||||||
$scope.$emit('emitReload');
|
$scope.$emit('emitReload');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user