mirror of
https://github.com/tenrok/axios.git
synced 2026-06-14 18:42:33 +03:00
Using more strict eslint rules
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = (
|
||||
|
||||
// Standard browser envs have full support of the APIs needed to test
|
||||
// whether the request URL is of the same origin as current location.
|
||||
(function () {
|
||||
(function standardBrowserEnv() {
|
||||
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
||||
var urlParsingNode = document.createElement('a');
|
||||
var originURL;
|
||||
@@ -60,7 +60,7 @@ module.exports = (
|
||||
})() :
|
||||
|
||||
// Non standard browser envs (web workers, react-native) lack needed support.
|
||||
(function () {
|
||||
(function nonStandardBrowserEnv() {
|
||||
return function isURLSameOrigin() {
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user