turn on syntax check for all users

This commit is contained in:
Brian Gough 2016-09-06 11:19:14 +01:00
parent c8ee803570
commit afa910c32d

View file

@ -74,7 +74,8 @@ define [
$scope.pdf.renderingError = true
# abort compile if syntax checks fail
$scope.stop_on_validation_error = localStorage("stop_on_validation_error:#{$scope.project_id}") or ide.$scope?.user?.betaProgram
$scope.stop_on_validation_error = localStorage("stop_on_validation_error:#{$scope.project_id}")
$scope.stop_on_validation_error ?= true # turn on for all users by default
$scope.$watch "stop_on_validation_error", (new_value, old_value) ->
if new_value? and old_value != new_value
localStorage("stop_on_validation_error:#{$scope.project_id}", new_value)