We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca9991 commit 62c847fCopy full SHA for 62c847f
src/component/toolbox/feature/SaveAsImage.ts
@@ -42,10 +42,14 @@ export interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption {
42
lang?: string[]
43
}
44
45
+interface ProxyWindow extends Window {
46
+ rawWindow?: Window
47
+}
48
+
49
function pickEventView(): Window {
50
try {
- void new MouseEvent("click", { view: window?.rawWindow || window });
- return window?.rawWindow || window;
51
+ void new MouseEvent("click", { view: (window as ProxyWindow)?.rawWindow || window });
52
+ return (window as ProxyWindow)?.rawWindow || window;
53
} catch {
54
if (document.defaultView) {
55
0 commit comments