mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 00:11:31 +00:00
fix pdf loadcount (no ?: operator in coffeescript)
This commit is contained in:
parent
1a8438be5f
commit
182dfabbae
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ define [
|
|||
# $scope.pages = []
|
||||
|
||||
$scope.document.destroy() if $scope.document?
|
||||
$scope.loadCount = $scope.loadCount? ? $scope.loadCount + 1 : 1
|
||||
$scope.loadCount = if $scope.loadCount? then $scope.loadCount + 1 else 1
|
||||
# TODO need a proper url manipulation library to add to query string
|
||||
$scope.document = new PDFRenderer($scope.pdfSrc + '&pdfng=true' , {
|
||||
scale: 1,
|
||||
|
|
Loading…
Reference in a new issue