update ssdp handler
This commit is contained in:
parent
63147d64a7
commit
4cad3ad8b0
13 changed files with 80 additions and 143 deletions
|
@ -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
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue