mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-05 21:04:28 -04:00
edit per suggestion
This commit is contained in:
parent
8842b156a6
commit
e64442a373
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ window.helpers = window.helpers || {
|
|||
const matchedCookie = document.cookie.split('; ').find(cookie => cookie.startsWith(cookiePrefix));
|
||||
if (matchedCookie) {
|
||||
const cookieBody = matchedCookie.replace(cookiePrefix, '');
|
||||
if (!cookieBody.length) return;
|
||||
if (cookieBody.length === 0) return;
|
||||
try {
|
||||
return JSON.parse(decodeURIComponent(cookieBody));
|
||||
} catch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue