Fetch the TikTok oEmbed in the main process with a browser user agent.

This commit is contained in:
2026-10-15 23:13:10 +11:00
parent cb4b447de7
commit a2a2fe39e0
2 changed files with 27 additions and 0 deletions
+5
View File
@@ -124,6 +124,11 @@ contextBridge.exposeInMainWorld('electron', {
youtube: {
getStream: (url) => ipcRenderer.invoke('get-youtube-stream', url)
},
// TikTok oEmbed (fetched in the main process)
tiktok: {
getOEmbed: (url) => ipcRenderer.invoke('tiktok:oembed', url)
},
// Background sync (stubs for desktop)
sync: {