mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
Remove cors-anywhere
This commit is contained in:
parent
763060a9c0
commit
834ca65a7d
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
"permissions": [
|
||||
"https://www.youtube.com/watch?v=*",
|
||||
"https://www.youtube.com/channel/*",
|
||||
"https://api.lbry.com/*",
|
||||
"tabs",
|
||||
"storage"
|
||||
],
|
||||
|
|
|
@ -5,7 +5,7 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
|||
const { id, type } = getId(tab.url);
|
||||
if (!id) return;
|
||||
|
||||
const url = `https://cors-anywhere.herokuapp.com/https://api.lbry.com/yt/resolve?${type}_ids=${id}`;
|
||||
const url = `https://api.lbry.com/yt/resolve?${type}_ids=${id}`;
|
||||
const response = await fetch(url, { headers: { 'Content-Type': 'application/json' } });
|
||||
const json = await response.json();
|
||||
console.log(json);
|
||||
|
|
Loading…
Add table
Reference in a new issue