1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add alias for version import

This commit is contained in:
Bill Thornton 2020-12-10 10:53:54 -05:00
parent 46fd6ca8f7
commit 121d56e218

View file

@ -1,4 +1,4 @@
import { version } from '../../package.json'; import { version as appVersion } from '../../package.json';
import appSettings from '../scripts/settings/appSettings'; import appSettings from '../scripts/settings/appSettings';
import browser from '../scripts/browser'; import browser from '../scripts/browser';
import { Events } from 'jellyfin-apiclient'; import { Events } from 'jellyfin-apiclient';
@ -33,7 +33,7 @@ function getDeviceProfile(item) {
let profile; let profile;
if (window.NativeShell) { if (window.NativeShell) {
profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, version); profile = window.NativeShell.AppHost.getDeviceProfile(profileBuilder, appVersion);
} else { } else {
const builderOpts = getBaseProfileOptions(item); const builderOpts = getBaseProfileOptions(item);
profile = profileBuilder(builderOpts); profile = profileBuilder(builderOpts);
@ -369,7 +369,7 @@ export const appHost = {
return window.NativeShell ? window.NativeShell.AppHost.appName() : appName; return window.NativeShell ? window.NativeShell.AppHost.appName() : appName;
}, },
appVersion: function () { appVersion: function () {
return window.NativeShell ? window.NativeShell.AppHost.appVersion() : version; return window.NativeShell ? window.NativeShell.AppHost.appVersion() : appVersion;
}, },
getPushTokenInfo: function () { getPushTokenInfo: function () {
return {}; return {};