dify/web/utils/client.ts

4 lines
109 B
TypeScript

export const isServer = typeof window === 'undefined'
export const isClient = typeof window !== 'undefined'