diff --git a/src/main/webapp/static/pdfjs/web/viewer.js b/src/main/webapp/static/pdfjs/web/viewer.js
index ccc1701..d8c5da4 100644
--- a/src/main/webapp/static/pdfjs/web/viewer.js
+++ b/src/main/webapp/static/pdfjs/web/viewer.js
@@ -1839,7 +1839,9 @@ var SecondaryToolbar = {
// Event handling functions.
presentationModeClick: function secondaryToolbarPresentationModeClick(evt) {
PDFViewerApplication.requestPresentationMode();
- $("#viewer").append("
")
+ if ($("#fullScreamBtn").length == 0) {
+ $("#viewer").append("
")
+ }
//阻止外层div鼠标点击冒泡事件
document.getElementById("fullScreamBtn").addEventListener("mousedown", function (evt) {
evt.stopPropagation();
diff --git a/src/main/webapp/static/pdfjs/web/viewer1.js b/src/main/webapp/static/pdfjs/web/viewer1.js
index 6c9227c..b744998 100644
--- a/src/main/webapp/static/pdfjs/web/viewer1.js
+++ b/src/main/webapp/static/pdfjs/web/viewer1.js
@@ -1842,7 +1842,9 @@ var SecondaryToolbar = {
// Event handling functions.
presentationModeClick: function secondaryToolbarPresentationModeClick(evt) {
PDFViewerApplication.requestPresentationMode();
- $("#viewer").append("
")
+ if ($("#fullScreamBtn").length == 0) {
+ $("#viewer").append("
")
+ }
//阻止外层div鼠标点击冒泡事件
document.getElementById("fullScreamBtn").addEventListener("mousedown", function (evt) {
evt.stopPropagation();