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

update ssdp handler

This commit is contained in:
Luke Pulverenti 2016-10-19 02:27:02 -04:00
parent 63147d64a7
commit 4cad3ad8b0
13 changed files with 80 additions and 143 deletions

View file

@ -6,7 +6,7 @@
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
if (info.HasMediaEncoder) {
navigateToService();
Dashboard.navigate('wizardagreement.html');
} else {
Dashboard.navigate('wizardcomponents.html');
@ -14,22 +14,7 @@
});
}
function navigateToService() {
var apiClient = ApiClient;
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
if (info.SupportsRunningAsService) {
Dashboard.navigate('wizardservice.html');
} else {
Dashboard.navigate('wizardagreement.html');
}
});
}
return {
navigateToComponents: navigateToComponents,
navigateToService: navigateToService
navigateToComponents: navigateToComponents
};
});