mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 13:49:46 +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;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
frame.contentWindow.addEventListener("afterprint", clear, { once: true });
|
frame.contentDocument?.defaultView.addEventListener("afterprint", clear, { once: true });
|
||||||
frame.contentWindow.print();
|
frame.contentWindow.print();
|
||||||
resolve();
|
resolve();
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in new issue
Block a user