Skip to content

Commit

Permalink
fix(kit): exposeInstanceToWindow work failed in no-browser env
Browse files Browse the repository at this point in the history
Co-authored-by: gaozhao <zhaogao@tencent.com>
  • Loading branch information
naiveeee and gaozhao authored Aug 20, 2024
1 parent a1c3689 commit ba8fdeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devtools-kit/src/core/vm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const $vmQueue: any[] = []
// Expose instance data to window
// Copied from https://github.com/vuejs/devtools/blob/f03590025b0b4910cf539531c91384be51a8f8fa/packages/app-backend-core/src/component.ts#L57-L72
export function exposeInstanceToWindow(componentInstance: any) {
const win = window as any
if (typeof win === 'undefined')
if (typeof window === 'undefined')
return
const win = window as any

if (!componentInstance)
return
Expand Down

0 comments on commit ba8fdeb

Please sign in to comment.