1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-08-05 08:47:02 +00:00

Refractor shared code for tizen receiver

This commit is contained in:
Michael Hollister 2025-02-13 11:21:49 -06:00
parent 8d238ef8b1
commit 7be0a41166
10 changed files with 43 additions and 50 deletions

View file

@ -6,6 +6,7 @@ export {};
declare global {
interface Window {
electronAPI: any;
tizenOSAPI: any;
webOSAPI: any;
webOS: any;
targetAPI: any;
@ -32,7 +33,7 @@ if (TARGET === 'electron') {
});
// @ts-ignore
} else if (TARGET === 'webOS') {
} else if (TARGET === 'webOS' || TARGET === 'tizenOS') {
preloadData = {
sendPlaybackErrorCb: () => { console.error('Player: Callback "send_playback_error" not set'); },
sendPlaybackUpdateCb: () => { console.error('Player: Callback "send_playback_update" not set'); },