From c8382d1d7b4bc669ca06a215611440b6f614502f Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 18 Feb 2025 23:12:42 +0700 Subject: [PATCH] fix videoExists return --- extension/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/background.js b/extension/background.js index 0717b50..1379530 100644 --- a/extension/background.js +++ b/extension/background.js @@ -138,7 +138,7 @@ async function subscribe(url, subscribed) { async function videoExists(id) { const path = `api/video/${id}/`; let response = await sendGet(path); - if (!response.data) return false; + if (response?.error) return false; let access = await getAccess(); return new URL(`video/${id}/`, `${access.url}:${access.port}/`).href; }