mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 13:26:20 +04:00
luci-base: luci.js: don't abort finished xhr objects
Calling abort() on a finished xhr object will clear properties such as status which can confuse code relying on legacy LuCI request helper functions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -393,11 +393,6 @@
|
||||
.then(resolveFn.bind(this, response))
|
||||
.catch(rejectFn.bind(this));
|
||||
}
|
||||
|
||||
try {
|
||||
xhr.abort();
|
||||
}
|
||||
catch(e) {}
|
||||
},
|
||||
|
||||
get: function(url, options) {
|
||||
|
||||
Reference in New Issue
Block a user