Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Add guard for unavailable URLSearchParams #261

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

simonihmig
Copy link
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