We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
exposeInstanceToWindow
1 parent a1c3689 commit ba8fdebCopy full SHA for ba8fdeb
packages/devtools-kit/src/core/vm/index.ts
@@ -4,9 +4,9 @@ const $vmQueue: any[] = []
4
// Expose instance data to window
5
// Copied from https://github.com/vuejs/devtools/blob/f03590025b0b4910cf539531c91384be51a8f8fa/packages/app-backend-core/src/component.ts#L57-L72
6
export function exposeInstanceToWindow(componentInstance: any) {
7
- const win = window as any
8
- if (typeof win === 'undefined')
+ if (typeof window === 'undefined')
9
return
+ const win = window as any
10
11
if (!componentInstance)
12
0 commit comments