nbWindowFactory throws on server
未关闭
bug
module:theme
module:universal
P3: minor
- 主要语言
- TypeScript
- 星标
- 8.1k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
### 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
贡献指南
评估
这个 Issue 还没有评估数据。