1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

[pdf viewer] use the latest PDFjs(v2.10.377)

- added 'loadingBar'
- show 'error info', 'password dialog' when needed
This commit is contained in:
llj
2021-10-20 15:22:21 +08:00
parent 5af4efa554
commit 33401fcc35
366 changed files with 20967 additions and 17541 deletions

View File

@@ -59,7 +59,7 @@ class FileContent extends React.Component {
let scriptNode = document.createElement('script');
scriptNode.type = 'text/javascript';
scriptNode.src = `${mediaUrl}js/pdf/viewer.js`;
scriptNode.src = `${mediaUrl}js/pdf/web/viewer.js`;
document.body.append(scriptNode);
}
}).catch((error) => {