mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
ReferenceError: window is not defined
```js ReferenceError: window is not defined at /Users/ctslin/Documents/nodes/pboooks-nodejs/node_modules/konva/konva.js:1165:36 at /Users/ctslin/Documents/nodes/pboooks-nodejs/node_modules/konva/konva.js:1173:11 ```
This commit is contained in:
parent
41c10555bc
commit
b70940ea1f
2
konva.js
2
konva.js
@ -1162,7 +1162,7 @@ var Konva = {};
|
||||
var canvas = Konva.Util.createCanvasElement(),
|
||||
context = canvas.getContext('2d'),
|
||||
_pixelRatio = (function() {
|
||||
var devicePixelRatio = window.devicePixelRatio || 1,
|
||||
var devicePixelRatio = Konva.window.devicePixelRatio || 1,
|
||||
backingStoreRatio = context.webkitBackingStorePixelRatio
|
||||
|| context.mozBackingStorePixelRatio
|
||||
|| context.msBackingStorePixelRatio
|
||||
|
Loading…
Reference in New Issue
Block a user