|
@@ -27,7 +27,7 @@ if (typeof window !== 'undefined') {
|
|
|
})();
|
|
|
}
|
|
|
|
|
|
-if (typeof window.HTMLCanvasElement !== 'undefined' && !window.HTMLCanvasElement.prototype.toBlob) {
|
|
|
+if (typeof window !== 'undefined' && typeof window.HTMLCanvasElement !== 'undefined' && !window.HTMLCanvasElement.prototype.toBlob) {
|
|
|
|
|
|
Object.defineProperty(window.HTMLCanvasElement.prototype, 'toBlob', {
|
|
|
|