diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index 046edfb270..48405c3c26 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -4,7 +4,7 @@ define [ ], (App, LogParser) -> App.controller "PdfController", ["$scope", "$http", "ide", "$modal", "synctex", ($scope, $http, ide, $modal, synctex) -> autoCompile = true - $scope.$on "doc:opened", () -> + $scope.$on "project:joined", () -> return if !autoCompile autoCompile = false $scope.recompile(isAutoCompile: true)