mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
allow version check for profileBuilder in nativeshell
This commit is contained in:
parent
d3f584ffdf
commit
3bde8f1b65
1 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,9 @@ import * as webSettings from '../scripts/settings/webSettings';
|
|||
import globalize from '../scripts/globalize';
|
||||
import profileBuilder from '../scripts/browserDeviceProfile';
|
||||
|
||||
const appName = 'Jellyfin Web';
|
||||
const appVersion = '10.7.0';
|
||||
|
||||
function getBaseProfileOptions(item) {
|
||||
const disableHlsVideoAudioCodecs = [];
|
||||
|
||||
|
@ -31,7 +34,7 @@ function getDeviceProfile(item, options = {}) {
|
|||
let profile;
|
||||
|
||||
if (window.NativeShell) {
|
||||
profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder);
|
||||
profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, appVersion);
|
||||
} else {
|
||||
const builderOpts = getBaseProfileOptions(item);
|
||||
profile = profileBuilder(builderOpts);
|
||||
|
@ -316,8 +319,6 @@ function askForExit() {
|
|||
|
||||
let deviceId;
|
||||
let deviceName;
|
||||
const appName = 'Jellyfin Web';
|
||||
const appVersion = '10.7.0';
|
||||
|
||||
export const appHost = {
|
||||
getWindowState: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue