mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
fix getCookie function
This commit is contained in:
parent
4156071bae
commit
8ec4ccd694
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ export function getCookie (name: string): string | null {
|
|||
|
||||
const cookies: string = document.cookie
|
||||
.split(';')
|
||||
.filter(cookie => cookie.indexOf(`${name}=`) !== -1)[0];
|
||||
.filter(cookie => cookie.indexOf(`${name}=`) === 0)[0];
|
||||
|
||||
try{
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue