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

automate loopback exception for windows store app

This commit is contained in:
Luke Pulverenti 2016-09-02 16:42:07 -04:00
parent f5ea8f49e9
commit 5df126af54
3 changed files with 4 additions and 57 deletions

View file

@ -58,14 +58,7 @@
}
.headerButton {
margin: 0 5px;
background-color: transparent;
vertical-align: middle;
text-align: center;
border: 0 !important;
outline: none;
cursor: pointer;
display: inline-block;
flex-shrink: 0;
}
.menuArrow {
@ -75,16 +68,6 @@
display: inline-block;
}
.headerButtonRight {
border-width: 0 !important;
display: inline-block;
flex-shrink: 0;
}
.headerButtonRight:first-child {
border-width: 0 !important;
}
.hideMainDrawer .mainDrawerButton {
display: none;
}

View file

@ -43,10 +43,6 @@
return;
}
if (Dashboard.lastSystemInfo) {
page.querySelector('.serverNameHeader').innerHTML = Dashboard.lastSystemInfo.ServerName;
}
DashboardPage.newsStartIndex = 0;
Dashboard.showLoadingMsg();
@ -118,7 +114,6 @@
ApiClient.getSystemInfo().then(function (systemInfo) {
page.querySelector('.serverNameHeader').innerHTML = systemInfo.ServerName;
Dashboard.updateSystemInfo(systemInfo);
$('#appVersionNumber', page).html(Globalize.translate('LabelVersionNumber').replace('{0}', systemInfo.Version));

View file

@ -144,25 +144,6 @@ var Dashboard = {
}
},
updateSystemInfo: function (info) {
Dashboard.lastSystemInfo = info;
if (!Dashboard.initialServerVersion) {
Dashboard.initialServerVersion = info.Version;
}
if (info.HasPendingRestart) {
} else {
if (Dashboard.initialServerVersion != info.Version && !AppInfo.isNativeApp) {
window.location.reload(true);
}
}
},
getConfigurationPageUrl: function (name) {
return "configurationpage?name=" + encodeURIComponent(name);
},
@ -579,18 +560,6 @@ var Dashboard = {
},
onWebSocketMessageReceived: function (e, data) {
var msg = data;
if (msg.MessageType === "SystemInfo") {
Dashboard.updateSystemInfo(msg.Data);
}
else if (msg.MessageType === "RestartRequired") {
Dashboard.updateSystemInfo(msg.Data);
}
},
getSupportedRemoteCommands: function () {
// Full list
@ -976,9 +945,6 @@ var AppInfo = {};
apiClient.normalizeImageOptions = Dashboard.normalizeImageOptions;
Events.off(apiClient, 'websocketmessage', Dashboard.onWebSocketMessageReceived);
Events.on(apiClient, 'websocketmessage', Dashboard.onWebSocketMessageReceived);
Events.off(apiClient, 'requestfail', Dashboard.onRequestFail);
Events.on(apiClient, 'requestfail', Dashboard.onRequestFail);
}
@ -1523,6 +1489,9 @@ var AppInfo = {};
},
stop: function () {
return MediaController.stop();
},
seek: function (ticks) {
return MediaController.seek(ticks);
}
};
});