mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix remote control nav
This commit is contained in:
parent
48c0634cc6
commit
c86f9cadc4
7 changed files with 10 additions and 28 deletions
|
@ -162,11 +162,6 @@ var Dashboard = {
|
|||
url += queryString;
|
||||
}
|
||||
|
||||
if (url.indexOf('/') != 0) {
|
||||
if (url.indexOf('://') == -1) {
|
||||
url = '/' + url;
|
||||
}
|
||||
}
|
||||
return Emby.Page.show(url);
|
||||
},
|
||||
|
||||
|
@ -656,7 +651,6 @@ var AppInfo = {};
|
|||
|
||||
AppInfo.enableHomeTabs = true;
|
||||
AppInfo.enableAutoSave = browserInfo.touch;
|
||||
AppInfo.enableHashBang = Dashboard.isRunningInCordova();
|
||||
|
||||
AppInfo.enableAppStorePolicy = isCordova;
|
||||
|
||||
|
@ -669,7 +663,6 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
if (isCordova) {
|
||||
AppInfo.enableAppLayouts = true;
|
||||
AppInfo.isNativeApp = true;
|
||||
AppInfo.enableHomeTabs = false;
|
||||
|
||||
|
@ -2498,7 +2491,7 @@ var AppInfo = {};
|
|||
defineCoreRoutes();
|
||||
Emby.Page.start({
|
||||
click: true,
|
||||
hashbang: AppInfo.enableHashBang
|
||||
hashbang: Dashboard.isRunningInCordova()
|
||||
});
|
||||
|
||||
var postInitDependencies = [];
|
||||
|
@ -2556,7 +2549,6 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
require(postInitDependencies);
|
||||
upgradeLayouts();
|
||||
initAutoSync();
|
||||
});
|
||||
}
|
||||
|
@ -2583,16 +2575,6 @@ var AppInfo = {};
|
|||
}
|
||||
}
|
||||
|
||||
function upgradeLayouts() {
|
||||
if (!AppInfo.enableAppLayouts) {
|
||||
Dashboard.getPluginSecurityInfo().then(function (info) {
|
||||
if (info.IsMBSupporter) {
|
||||
AppInfo.enableAppLayouts = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function initAutoSync() {
|
||||
require(['serverNotifications', 'events'], function (serverNotifications, events) {
|
||||
events.on(serverNotifications, 'SyncJobItemReady', function (e, apiClient, data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue