Skip to content

Commit

Permalink
fix(ui-kit): ssr compatibility, close #183
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 18, 2023
1 parent e32b8d5 commit 4f49cd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/devtools-kit/src/iframe-client.ts
Expand Up @@ -12,6 +12,9 @@ export function onDevtoolsClientConnected(fn: (client: NuxtDevtoolsIframeClient)
if (hasSetup)
return

if (typeof window === 'undefined')
return

// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
// @ts-ignore injection
if (window.__NUXT_DEVTOOLS__) {
Expand Down

0 comments on commit 4f49cd4

Please sign in to comment.