Custom fetch not needed

This commit is contained in:
WardPearce
2024-09-19 22:03:22 +12:00
parent b6a55fdb29
commit 7b07b08b96
2 changed files with 0 additions and 5 deletions
-1
View File
@@ -4,7 +4,6 @@ const config: CapacitorConfig = {
appId: 'us.materialio.app',
appName: 'Materialious',
webDir: 'build',
bundledWebRuntime: false,
plugins: {
CapacitorHttp: {
enabled: true
@@ -28,10 +28,6 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
const youtube = await innertube.create({
visitor_data: tokens.visitor_data,
po_token: tokens.po_token,
// Custom fetch method required so capacitor http patch is used
fetch: async (input: RequestInfo | URL, init?: RequestInit) => {
return window.fetch(input, init);
}
});
const video = await youtube.getInfo(videoId);