mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch to Promise.all
This commit is contained in:
parent
9932bc3eb5
commit
f65465a5ae
25 changed files with 60 additions and 80 deletions
|
@ -104,11 +104,7 @@
|
|||
|
||||
function loadChildrenOfRootNode(page, scope, callback) {
|
||||
|
||||
var promise2 = ApiClient.getLiveTvChannels({ limit: 0 });
|
||||
|
||||
$.when(promise2).then(function (response2) {
|
||||
|
||||
var result = response2;
|
||||
ApiClient.getLiveTvChannels({ limit: 0 }).then(function (result) {
|
||||
|
||||
var nodes = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue