Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Add guard for unavailable URLSearchParams#261

Open
simonihmig wants to merge 1 commit intoecsyjs:devfrom
simonihmig:urlsearchparams
Open

Add guard for unavailable URLSearchParams#261
simonihmig wants to merge 1 commit intoecsyjs:devfrom
simonihmig:urlsearchparams

Conversation

@simonihmig
Copy link
Copy Markdown
Contributor

This adds a better guard for URLSearchParams eventually not being defined.

I ran into this when running the code in node (context: FastBoot, the Ember.js SSR solution, runs a client-side SPA in node, and has a window global defined - for whatever reason - but not any of the other browser APIs). But IE also does not support URLSearchParams, so this is good to have in general I think!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant