enable per-page pdf downloads by default

This commit is contained in:
Brian Gough 2016-07-12 11:16:38 +01:00
parent a9f3a29b72
commit 0ae639f1c3

View file

@ -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