Skip to content

Check for existence of window to support SSR #159

@aarongervais

Description

@aarongervais

Great polyfill, but it breaks Gatsby's build step because window is undefined. Maybe consider adding the following to the top of the polyfill function:

if (typeof window === 'undefined') { 
  return; 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions