diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index 926eea880c..207e810044 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -32,7 +32,7 @@ define [ queryStringExists = url.match(/\?/) url = url + (if not queryStringExists then '?' else '&') + 'pdfng=true' # for isolated compiles, load the pdf on-demand because nobody will overwrite it - onDemandLoading = window.location?.search?.match(/isolated=true/)? + onDemandLoading = true $scope.document = new PDFRenderer(url, { scale: 1, disableAutoFetch: if onDemandLoading then true else undefined