mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
turn on syntax check for all users
This commit is contained in:
parent
c8ee803570
commit
afa910c32d
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue