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

Add package.json name and version as defines to avoid importing the package.json in code

This commit is contained in:
Niels van Velzen 2024-03-23 09:28:24 +01:00
parent a34fbadaab
commit facbda4f2f
6 changed files with 13 additions and 10 deletions

View file

@ -26,8 +26,6 @@ import { getSystemInfoQuery } from 'hooks/useSystemInfo';
import { toApi } from 'utils/jellyfin-apiclient/compat';
import { queryClient } from 'utils/query/queryClient';
import { version as WEB_VERSION } from '../../../package.json';
import '../../elements/emby-button/emby-button';
import '../../elements/emby-itemscontainer/emby-itemscontainer';
@ -210,7 +208,7 @@ function refreshActiveRecordings(view, apiClient) {
function reloadSystemInfo(view, apiClient) {
view.querySelector('#buildVersion').innerText = __JF_BUILD_VERSION__;
view.querySelector('#webVersion').innerText = WEB_VERSION;
view.querySelector('#webVersion').innerText = __PACKAGE_JSON_VERSION__;
queryClient
.fetchQuery(getSystemInfoQuery(toApi(apiClient)))