diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index 8613ee9e..ed029750 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -194,6 +194,12 @@ module.directive('toolbar', function($state, $stateParams, $route, $location, }); $scope.settingsService = SettingsService; + $scope.$watch('settingsService.settings.readingMode', function(newValue, + oldValue) { + if (newValue && oldValue && newValue != oldValue) { + SettingsService.save(); + } + }); $scope.refresh = function() { $scope.$emit('emitReload'); };