mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
21 lines
495 B
JavaScript
21 lines
495 B
JavaScript
define([], function () {
|
|
'use strict';
|
|
|
|
function navigateToComponents() {
|
|
var apiClient = ApiClient;
|
|
|
|
apiClient.getJSON(apiClient.getUrl('Startup/Info')).then(function (info) {
|
|
|
|
if (info.HasMediaEncoder) {
|
|
Dashboard.navigate('wizardagreement.html');
|
|
|
|
} else {
|
|
Dashboard.navigate('wizardcomponents.html');
|
|
}
|
|
});
|
|
}
|
|
|
|
return {
|
|
navigateToComponents: navigateToComponents
|
|
};
|
|
}); |