Browse Source

Fix arrow function in index.js

Ben Hsieh 7 years ago
parent
commit
10d9e63462
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/index.js

+ 1
- 1
src/index.js View File

@@ -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