fix isBrowser detection for electron

This commit is contained in:
Anton Lavrenov
2017-10-30 11:37:21 +05:30
parent 90dfeec703
commit a4895f8b7a
2 changed files with 7 additions and 1 deletions

View File

@@ -6,6 +6,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [1.7.3][2017-10-19]
## Fixed
- `isBrowser` detection for electron
## [1.7.3][2017-10-19]
### Changed
- Changing size of a stage will redraw it in synchronous way

View File

@@ -51,7 +51,8 @@
isBrowser:
typeof window !== 'undefined' &&
{}.toString.call(window) === '[object Window]',
({}.toString.call(window) === '[object Window]' ||
{}.toString.call(window) === '[object global]'),
// configurations
enableTrace: false,