0
0
mirror of https://github.com/jellyfin/jellyfin-vue.git synced 2025-02-23 01:06:27 +00:00
Fernando Fernández 8e8cba9f32 feat(tauri): implement fullscreen toggle functionality (#2572)
Implements full window's fullscreen functionality inside @jellyfin-vue/tauri-runtime package

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
Co-authored-by: sean <sean.mcbroom@outlook.com>
2025-01-30 22:10:09 +01:00
..

This is the package that provides a build from @jellyfin-vue/frontend with all the Tauri-specific code, since @jellyfin-vue/frontend must not have any code that doesn't belong to the DOM/Browser environment.

It works by injecting the Tauri logic into the standard document, window or globalThis objects (or any other relevant global) and loading those modules before the frontend's one, so Tauri code is loaded always first.

See entrypoint.ts and src/fullscreen.ts for an example.

Every "polyfilled" feature must be in their own module to keep the logic simple enough.