瀏覽代碼

thumbnail-generator: Remove image clear code, fixes #1025. (#1028)

It will be garbage collected soon anyway.
Renée Kooi 6 年之前
父節點
當前提交
5bf4ed96f4
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      packages/@uppy/thumbnail-generator/src/index.js

+ 0 - 3
packages/@uppy/thumbnail-generator/src/index.js

@@ -87,9 +87,6 @@ module.exports = class ThumbnailGenerator extends Plugin {
       canvas.width = maxW
       canvas.height = maxH
       canvas.getContext('2d').drawImage(image, 0, 0, maxW, maxH)
-      image.src = 'about:blank'
-      image.width = 1
-      image.height = 1
       image = canvas
     }