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