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:
parent
a34fbadaab
commit
facbda4f2f
6 changed files with 13 additions and 10 deletions
|
@ -38,7 +38,6 @@ import './legacy/vendorStyles';
|
|||
import { currentSettings } from './scripts/settings/userSettings';
|
||||
import taskButton from './scripts/taskbutton';
|
||||
import RootApp from './RootApp.tsx';
|
||||
import { name as WEB_NAME, version as WEB_VERSION } from '../package.json';
|
||||
|
||||
import './styles/livetv.scss';
|
||||
import './styles/dashboard.scss';
|
||||
|
@ -61,7 +60,7 @@ function loadCoreDictionary() {
|
|||
|
||||
function init() {
|
||||
// Log current version to console to help out with issue triage and debugging
|
||||
console.log(`${WEB_NAME} version ${WEB_VERSION} build ${__JF_BUILD_VERSION__}`);
|
||||
console.log(`${__PACKAGE_JSON_NAME__} version ${__PACKAGE_JSON_VERSION__} build ${__JF_BUILD_VERSION__}`);
|
||||
|
||||
// This is used in plugins
|
||||
window.Events = Events;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue