mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -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
|
|
};
|
|
}); |