1
0
Fork 0
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:
dkanada 2020-11-29 00:10:14 +09:00 committed by GitHub
commit fb4ac021e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View file

@ -26,7 +26,7 @@ import './libraryMenu';
import './routes';
import '../components/themeMediaPlayer';
import './autoBackdrops';
import { navigate, pageClassOn, serverAddress } from './clientUtils';
import { pageClassOn, serverAddress } from './clientUtils';
import '../libraries/screensavermanager';
import './serverNotifications';
import '../components/playback/playerSelectionMenu';
@ -77,12 +77,9 @@ function loadCoreDictionary() {
function init() {
serverAddress().then(server => {
if (!server) {
navigate('selectserver.html');
return;
if (server) {
ServerConnections.initApiClient(server);
}
ServerConnections.initApiClient(server);
}).then(() => {
console.debug('initAfterDependencies promises resolved');

View file

@ -1,3 +0,0 @@
window.appMode = 'standalone';
import('./site');

View file

@ -4,7 +4,7 @@ const merge = require('webpack-merge');
module.exports = merge(common, {
mode: 'development',
entry: './scripts/standalone.js',
entry: './scripts/site.js',
devtool: 'source-map',
module: {
rules: [