mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fix node global
This commit is contained in:
4
konva.js
4
konva.js
@@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// runtime check for already included Konva
|
// runtime check for already included Konva
|
||||||
(function(){
|
(function(global){
|
||||||
'use strict';
|
'use strict';
|
||||||
/**
|
/**
|
||||||
* @namespace Konva
|
* @namespace Konva
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
}
|
}
|
||||||
Konva.document = document;
|
Konva.document = document;
|
||||||
Konva.window = window;
|
Konva.window = window;
|
||||||
})();
|
})(typeof window !== 'undefined' ? window : global);
|
||||||
|
|
||||||
/*eslint-disable eqeqeq, no-cond-assign, no-empty*/
|
/*eslint-disable eqeqeq, no-cond-assign, no-empty*/
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user