mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
enable per-page pdf downloads by default
This commit is contained in:
parent
a9f3a29b72
commit
0ae639f1c3
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ define [
|
||||||
queryStringExists = url.match(/\?/)
|
queryStringExists = url.match(/\?/)
|
||||||
url = url + (if not queryStringExists then '?' else '&') + 'pdfng=true'
|
url = url + (if not queryStringExists then '?' else '&') + 'pdfng=true'
|
||||||
# for isolated compiles, load the pdf on-demand because nobody will overwrite it
|
# 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, {
|
$scope.document = new PDFRenderer(url, {
|
||||||
scale: 1,
|
scale: 1,
|
||||||
disableAutoFetch: if onDemandLoading then true else undefined
|
disableAutoFetch: if onDemandLoading then true else undefined
|
||||||
|
|
Loading…
Reference in a new issue