Fix TypeScript ref typings and lint errors

This commit is contained in:
Mert Uyanık
2025-10-29 09:32:44 +03:00
parent 53de7f8658
commit 3ccdd55bdf
6 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -46,12 +46,12 @@ export const loadHls = async (): Promise<any> => {
// Try loading from npm package first
const hlsModule = await import('hls.js')
return hlsModule.default
} catch (npmError) {
} catch {
try {
// Fallback to CDN
const Hls = await loadHlsFromCDN()
return Hls
} catch (cdnError) {
} catch {
throw new Error('Unable to load HLS.js library. HLS streaming is not available.')
}
}
@@ -99,7 +99,7 @@ export const getHlsAudioTracks = (hls: any): AudioTrack[] => {
})
return audioTracks
} catch (error) {
} catch {
return []
}
}