From 64ff616867b2ec5bd4a6594d1a2a0620aada1c35 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 16 Nov 2022 18:32:02 +0100 Subject: [PATCH] fix a silly issue :3 --- src/libpoketube/libpoketube-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 63ad07d2..a8485b1a 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -30,7 +30,7 @@ const config = { // Util functions function getJson(str) { try { - return getJson(str); + return JSON.parse(str); } catch { return null; }