Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow import.meta.env.SSR check #122

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Conversation

abdulsattar
Copy link
Contributor

Allows

renderedCallback() {
  if(!import.meta.env.SSR) {
    // browser specific code allowed here.
  }
}

@abdulsattar abdulsattar requested a review from divmain June 19, 2023 16:17
@abdulsattar abdulsattar merged commit 8e526d2 into master Jun 21, 2023
@abdulsattar abdulsattar deleted the abdulsattar/import-meta branch June 21, 2023 17:39
@abdulsattar
Copy link
Contributor Author

Released in v1.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants