|
|
|
@ -11,21 +11,21 @@ import cookie from 'react-cookies'
|
|
|
|
|
// axios.defaults.withCredentials = true;
|
|
|
|
|
|
|
|
|
|
const setCookier = () => {
|
|
|
|
|
|
|
|
|
|
var u = navigator.userAgent;
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
|
|
|
|
|
if(isAndroid){
|
|
|
|
|
const _params = window.location.search;
|
|
|
|
|
if (_params) {
|
|
|
|
|
let _search = _params.split('?')[1];
|
|
|
|
|
_search.split('&').forEach(item => {
|
|
|
|
|
const _arr = item.split('=');
|
|
|
|
|
cookie.save(_arr[0], _arr[1], { domain: '.educoder.net', path: '/'});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// var u = navigator.userAgent;
|
|
|
|
|
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
|
|
|
|
|
// if(isAndroid){
|
|
|
|
|
// const _params = window.location.search;
|
|
|
|
|
// if (_params) {
|
|
|
|
|
// let _search = _params.split('?')[1];
|
|
|
|
|
// _search.split('&').forEach(item => {
|
|
|
|
|
// const _arr = item.split('=');
|
|
|
|
|
// cookie.save(_arr[0], _arr[1], { domain: '.educoder.net', path: '/'});
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
// }else{
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|