Просмотр исходного кода

Merge pull request #5175 from overleaf/bg-enable-file-line-errors-for-alpha

[web] enable file-line-errors for alpha group

GitOrigin-RevId: 95579162410be25d9908b74816d240ec95432463
Brian Gough 5 лет назад
Родитель
Сommit
f5fce04e34
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      services/web/frontend/js/ide/pdf/controllers/PdfController.js

+ 4 - 1
services/web/frontend/js/ide/pdf/controllers/PdfController.js

@@ -283,7 +283,10 @@ App.controller(
       if (getMeta('ol-enablePdfCaching')) {
         params.enable_pdf_caching = true
       }
-      if (window.location.search.includes('file_line_errors=true')) {
+      if (
+        window.user.alphaProgram ||
+        window.location.search.includes('file_line_errors=true')
+      ) {
         params.file_line_errors = 'true'
       }
       // if the previous run was a check, clear the error logs