Skip to content

Commit a04374a

Browse files
committed
Merge branch '5.1.0-test' of https://github.com/PDFTron/webviewer-ui into 5.1.0-test
2 parents 683ee88 + 8756a53 commit a04374a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helpers/loadDocument.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default (state, dispatch) => {
3131
if (partRetriever.setErrorCallback) {
3232
partRetriever.setErrorCallback(fireError);
3333
}
34-
34+
3535
dispatch(actions.openElement('progressModal'));
3636
core.loadAsync(partRetriever, docOptions);
3737
})
@@ -120,10 +120,10 @@ const getPartRetriever = (state, streaming, dispatch) => {
120120
dispatch(actions.setIsUploading(true)); // this is reset in onDocumentLoaded event
121121
}
122122

123-
partRetriever = new window.CoreControls.PartRetrievers.BlackBoxPartRetriever(documentPath, pdftronServer, { disableWebsockets, singleServerMode });
123+
partRetriever = new window.CoreControls.PartRetrievers.BlackBoxPartRetriever(documentPath, pdftronServer, blackboxOptions);
124124
if (needsUpload) {
125125
partRetriever._isBlackboxLocalFile = true;
126-
}
126+
}
127127
} else if (engineType === engineTypes.UNIVERSAL) {
128128
const cache = window.CoreControls.PartRetrievers.CacheHinting.NO_HINT;
129129

0 commit comments

Comments
 (0)