Browse Source

@uppt/xhr-upload: fix `this.uppy is undefined` error (#3207)

Fixes: https://github.com/transloadit/uppy/issues/3195
Antoine du Hamel 3 năm trước cách đây
mục cha
commit
c84e218750
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/@uppy/xhr-upload/src/index.js

+ 1 - 1
packages/@uppy/xhr-upload/src/index.js

@@ -87,7 +87,7 @@ module.exports = class XHRUpload extends BasePlugin {
         try {
           parsedResponse = JSON.parse(responseText)
         } catch (err) {
-          this.uppy.log(err)
+          uppy.log(err)
         }
 
         return parsedResponse