From 0ae639f1c3223de2565c8edcf14b6b36abcfc430 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 12 Jul 2016 11:16:38 +0100 Subject: [PATCH] enable per-page pdf downloads by default --- .../web/public/coffee/ide/pdfng/directives/pdfViewer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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