Merge pull request #6 from sharelatex/as-fix-autocompile-setting

Send JSON in autocompile setting event payload
This commit is contained in:
Alasdair Smith
2017-09-19 15:57:33 +01:00
committed by GitHub
@@ -107,7 +107,7 @@ define [
if newValue? and oldValue != newValue
localStorage("autocompile_enabled:#{$scope.project_id}", newValue)
toggleAutoCompile(newValue)
event_tracking.sendMB "autocompile-setting-changed", newValue
event_tracking.sendMB "autocompile-setting-changed", { value: newValue }
if window.user?.betaProgram and $scope.autocompile_enabled
toggleAutoCompile(true)