Add cancel method to fetch mixin.
This commit is contained in:
1 parent
cbc87f72bf
commit
cf7fa50e82
2 files changed
+5
-1
No files matched your search
@@ -5,6 +5,10 @@ export const fetchMixin = function(superClass) {
|
||||
this.__abortControllers = new Map();
|
||||
}
|
||||
|
||||
cancel(method, url) {
|
||||
return this.__cancelRunningRequest(method, url);
|
||||
}
|
||||
|
||||
get(url, overwrite = true) {
|
||||
return this.do('GET', url, null, overwrite);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user