Pārlūkot izejas kodu

Fix arrow function in index.js

Ben Hsieh 7 gadus atpakaļ
vecāks
revīzija
10d9e63462
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/index.js

+ 1
- 1
src/index.js Parādīt failu

@@ -172,7 +172,7 @@ function fetch(...args:any):Promise {
172 172
       delete promise['uploadProgress']
173 173
       delete promise['stateChange']
174 174
       delete promise['cancel']
175
-      promise.cancel = () {
175
+      promise.cancel = () => {
176 176
         console.warn('finished request could not be canceled')
177 177
       }
178 178