mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Using more strict eslint rules
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = (
|
||||
utils.isStandardBrowserEnv() ?
|
||||
|
||||
// Standard browser envs support document.cookie
|
||||
(function () {
|
||||
(function standardBrowserEnv() {
|
||||
return {
|
||||
write: function write(name, value, expires, path, domain, secure) {
|
||||
var cookie = [];
|
||||
@@ -43,7 +43,7 @@ module.exports = (
|
||||
})() :
|
||||
|
||||
// Non standard browser env (web workers, react-native) lack needed support.
|
||||
(function () {
|
||||
(function nonStandardBrowserEnv() {
|
||||
return {
|
||||
write: function write() {},
|
||||
read: function read() { return null; },
|
||||
|
||||
Reference in New Issue
Block a user