removed async

This commit is contained in:
Mohamed Nouffer
2023-08-02 19:48:47 +05:30
parent 3056b7a28a
commit a1785dcef7
10 changed files with 17 additions and 16 deletions

View File

@ -111,9 +111,9 @@ const TheContent = () => {
}
}
async function get_token_from_storage_or_cookie() {
function get_token_from_storage_or_cookie() {
const cookies = new Cookies();
const shib = await cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e62697a2f73686962626f6c657468');
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e62697a2f73686962626f6c657468')
console.log(shib);
if (shib !== undefined) {
fetchSession().then(() => {
@ -141,6 +141,7 @@ const TheContent = () => {
}
]`;
//const json_str = '[{"jsessonid": "' + UserId + '" , "name": "' + _firstname + ' ' +_lastname+ '", "mailadress":" ' + _email + '", "empcode": "' + _empcode + '"}]';
if(_empcode !== null && _empcode !== undefined){
if(isCSVPath()){