We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1028e2 + 069ddc8 commit b3e32e2Copy full SHA for b3e32e2
web/firefox_print_service.js
@@ -13,9 +13,9 @@
13
* limitations under the License.
14
*/
15
16
+import { RenderingCancelledException, shadow } from "pdfjs-lib";
17
import { CSS_UNITS } from "./ui_utils.js";
18
import { PDFPrintServiceFactory } from "./app.js";
-import { shadow } from "pdfjs-lib";
19
20
// Creates a placeholder with div and canvas with right size for the page.
21
function composePage(
@@ -85,8 +85,10 @@ function composePage(
85
}
86
obj.done();
87
},
88
- function (error) {
89
- console.error(error);
+ function (reason) {
+ if (!(reason instanceof RenderingCancelledException)) {
90
+ console.error(reason);
91
+ }
92
93
if (currentRenderTask === thisRenderTask) {
94
currentRenderTask.cancel();
0 commit comments