mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2127 from thornbill/standalone-fixes
Remove standalone.js and broken navigation
This commit is contained in:
commit
fb4ac021e4
3 changed files with 4 additions and 10 deletions
|
@ -26,7 +26,7 @@ import './libraryMenu';
|
||||||
import './routes';
|
import './routes';
|
||||||
import '../components/themeMediaPlayer';
|
import '../components/themeMediaPlayer';
|
||||||
import './autoBackdrops';
|
import './autoBackdrops';
|
||||||
import { navigate, pageClassOn, serverAddress } from './clientUtils';
|
import { pageClassOn, serverAddress } from './clientUtils';
|
||||||
import '../libraries/screensavermanager';
|
import '../libraries/screensavermanager';
|
||||||
import './serverNotifications';
|
import './serverNotifications';
|
||||||
import '../components/playback/playerSelectionMenu';
|
import '../components/playback/playerSelectionMenu';
|
||||||
|
@ -77,12 +77,9 @@ function loadCoreDictionary() {
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
serverAddress().then(server => {
|
serverAddress().then(server => {
|
||||||
if (!server) {
|
if (server) {
|
||||||
navigate('selectserver.html');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ServerConnections.initApiClient(server);
|
ServerConnections.initApiClient(server);
|
||||||
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
console.debug('initAfterDependencies promises resolved');
|
console.debug('initAfterDependencies promises resolved');
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
window.appMode = 'standalone';
|
|
||||||
|
|
||||||
import('./site');
|
|
|
@ -4,7 +4,7 @@ const merge = require('webpack-merge');
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
entry: './scripts/standalone.js',
|
entry: './scripts/site.js',
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue