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:
parent
f5ea8f49e9
commit
5df126af54
3 changed files with 4 additions and 57 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue