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

@ -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);
}
};
});