|
|
|
@ -68,8 +68,16 @@ export default function RootLayout({ |
|
|
|
} |
|
|
|
|
|
|
|
function readCookie(name) { |
|
|
|
var match = document.cookie.match(new RegExp('(?:^|; )' + name.replace(/[.*+?^${}()|[\\]\\]/g, '\\\\$&') + '=([^;]*)')); |
|
|
|
return match ? decodeURIComponent(match[1]) : ''; |
|
|
|
var cookies = document.cookie ? document.cookie.split('; ') : []; |
|
|
|
|
|
|
|
for (var i = 0; i < cookies.length; i += 1) { |
|
|
|
var parts = cookies[i].split('='); |
|
|
|
if (parts[0] === name) { |
|
|
|
return decodeURIComponent(parts.slice(1).join('=')); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return ''; |
|
|
|
} |
|
|
|
|
|
|
|
if (!Object.getOwnPropertyDescriptor(window, 'HABIB_TOKEN')) { |
|
|
|
|