mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-14 17:38:29 +00: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));
|
const matchedCookie = document.cookie.split('; ').find(cookie => cookie.startsWith(cookiePrefix));
|
||||||
if (matchedCookie) {
|
if (matchedCookie) {
|
||||||
const cookieBody = matchedCookie.replace(cookiePrefix, '');
|
const cookieBody = matchedCookie.replace(cookiePrefix, '');
|
||||||
if (!cookieBody.length) return;
|
if (cookieBody.length === 0) return;
|
||||||
try {
|
try {
|
||||||
return JSON.parse(decodeURIComponent(cookieBody));
|
return JSON.parse(decodeURIComponent(cookieBody));
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user