2
0
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:
Matt Zabriskie
2015-12-14 20:06:57 -07:00
parent 2b147fb0b7
commit f28a4a8248
16 changed files with 230 additions and 93 deletions
+2 -2
View File
@@ -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;
};