|
|
@@ -112,8 +112,10 @@ block content
|
|
|
|
|
|
- locals.suppressDefaultJs = true
|
|
|
|
|
|
- - var fingerprintedPath = fingerprint(jsPath+'libs/pdf.worker.js')
|
|
|
- - var pdfJsWorkerPath = jsPath+'libs/pdf.worker.js?fingerprint='+fingerprintedPath
|
|
|
+ - var pdfPath = 'libs/pdf.worker.js'
|
|
|
+ - if (user.featureSwitches && user.featureSwitches.pdfng) { pdfPath = 'libs/pdfjs-1.0.712/pdf.worker.js'; }
|
|
|
+ - var fingerprintedPath = fingerprint(jsPath+pdfPath)
|
|
|
+ - var pdfJsWorkerPath = jsPath+pdfPath+'?fingerprint='+fingerprintedPath
|
|
|
script(type='text/javascript').
|
|
|
window.pdfJsWorkerPath = "#{pdfJsWorkerPath}";
|
|
|
|