mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
52c02d55ef
commit
f80420553b
1 file changed
+1
-1
@@ -1362,7 +1362,7 @@ function printPDF(bytes, openSeq) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
frame.contentWindow.addEventListener("afterprint", clear, { once: true });
|
||||
frame.contentDocument?.defaultView.addEventListener("afterprint", clear, { once: true });
|
||||
frame.contentWindow.print();
|
||||
resolve();
|
||||
} catch {
|
||||
|
||||
Reference in new issue
Block a user