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