From b8356ebc52e4476ba0bb2c61e3dcab4869f0d4e7 Mon Sep 17 00:00:00 2001 From: stephan Date: Sat, 4 Dec 2021 11:56:19 +0100 Subject: [PATCH] stephanrauh/ngx-extended-pdf-viewer#1059 fix the "Window is not defined" bug --- src/pdf.sandbox.external.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdf.sandbox.external.js b/src/pdf.sandbox.external.js index ad8809e855740..3fda62553d56c 100644 --- a/src/pdf.sandbox.external.js +++ b/src/pdf.sandbox.external.js @@ -64,7 +64,7 @@ class SandboxSupportBase { args = this.exportValueToSandbox(args); this.commFun(name, args); } catch (e) { - this.win.Window['ngxConsole'].error(e); + this.win.console.error(e); } }