mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 08:46:44 +08:00
fix isBrowser detection for electron
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user