Skip to content

Wrong client detection in example #6489

@steida

Description

@steida

This:

if (typeof window === 'undefined') {
    throw Error('Chat should only render on the client.');
  }

Should be this:

if (typeof document === 'undefined') {
    throw Error('Chat should only render on the client.');
  }

Because Deno has window object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions