mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #6624 from overleaf/bg-cm6-autocompile-lint-check
[web] add cm6 hasLintingError support GitOrigin-RevId: 9e531526003595cb5139623f929605a7fd0f59f8
This commit is contained in:
parent
ab5135957a
commit
19edfab153
1 changed files with 5 additions and 0 deletions
|
@ -402,6 +402,11 @@ If the project has been renamed please look in your project list for a new proje
|
|||
// Allow service worker to be removed via the websocket
|
||||
ide.$scope.$on('service-worker:unregister', unregisterServiceWorker)
|
||||
|
||||
// Listen for editor:lint event from CM6 linter
|
||||
window.addEventListener('editor:lint', event => {
|
||||
$scope.hasLintingError = event.detail.hasLintingError
|
||||
})
|
||||
|
||||
return ide.socket.on('project:publicAccessLevel:changed', data => {
|
||||
if (data.newAccessLevel != null) {
|
||||
ide.$scope.project.publicAccesLevel = data.newAccessLevel
|
||||
|
|
Loading…
Reference in a new issue