disableWorker via URL

This commit is contained in:
Artur Adib 2011-12-09 13:17:48 -05:00
parent 7ea770fd08
commit 8439830d4e

View File

@ -703,6 +703,9 @@ window.addEventListener('load', function webViewerLoad(evt) {
document.getElementById('fileInput').setAttribute('hidden', 'true');
else
document.getElementById('fileInput').value = null;
if ('disableWorker' in params)
PDFJS.disableWorker = params['disableWorker'] === 'true' ? true : false;
}, true);
window.addEventListener('unload', function webViewerUnload(evt) {