mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2025-03-12 08:30:13 +00:00
fix videoExists return
This commit is contained in:
parent
2703555723
commit
c8382d1d7b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user