mirror of
https://github.com/iv-org/invidious.git
synced 2025-03-15 02:16:34 -04:00
edit per suggestion
This commit is contained in:
parent
8842b156a6
commit
e64442a373
@ -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…
x
Reference in New Issue
Block a user