nbWindowFactory throws on server
Offen
bug
module:theme
module:universal
P3: minor
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8.1k
- Forks
- 1.5k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### Issue type
**I'm submitting a ...** (check one with "x")
* [x] bug report
* [] feature request
### Issue description
**Current behavior:**
nbWindowFactory throws on server
**Expected behavior:**
nbWindowFactory should check if window exists with `typeof`.
Probably return undefined on the server and make `NB_WINDOW` optional in components which need it.
**Steps to reproduce:**
**Related code:**
https://github.com/akveo/nebular/blob/67c5718acf33fee3bfe9f631dee176bd5a4cfe38/src/framework/theme/theme.module.ts#L33
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.