angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

fix: check if 'location' exists on Document object #205

Closed sis0k0 closed 6 years ago

sis0k0 commented 6 years ago

NativeScript has a fake global 'document' object, which doesn't have a 'location' property. This PR introduces a check that the 'location' property is defined before retrieving it and allows the package to be used with NativeScript.

related to https://github.com/angular/angular/issues/22093

sis0k0 commented 6 years ago

Fixed in Angular 6.1-beta.3.