mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce task allocations by making IBN api synchronous
This commit is contained in:
parent
743d8a4fd8
commit
44e59e7215
1 changed files with 5 additions and 5 deletions
|
@ -1114,6 +1114,11 @@ var Dashboard = {
|
|||
|
||||
};
|
||||
|
||||
if (!window.WebSocket) {
|
||||
|
||||
alert("This browser does not support web sockets. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
|
||||
}
|
||||
|
||||
var ApiClient = MediaBrowser.ApiClient.create("Dashboard", window.dashboardVersion);
|
||||
|
||||
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);
|
||||
|
@ -1160,11 +1165,6 @@ $(function () {
|
|||
|
||||
$(document.body).append(footerHtml);
|
||||
|
||||
if (!window.WebSocket) {
|
||||
|
||||
alert("This browser does not support web sockets. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
|
||||
}
|
||||
|
||||
if (!IsStorageEnabled()) {
|
||||
alert("This browser does not support local storage or is running in private mode. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue