mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
fix(webkit): fix issue with webkit not supporting .at()
This commit is contained in:
@ -3,6 +3,6 @@ export const getCookie = (name: string): string | undefined => {
|
||||
const parts = value.split(`; ${name}=`);
|
||||
|
||||
if (parts.length === 2) {
|
||||
return parts.at(-1);
|
||||
return parts[1];
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user