fix(webkit): fix issue with webkit not supporting .at()

This commit is contained in:
Amruth Pillai
2022-03-11 15:40:25 +01:00
parent 7d8828a358
commit 2654cba039
5 changed files with 6 additions and 6 deletions

View File

@ -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];
}
};