jellyfin-web/dashboard-ui/scripts/wizardcontroller.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

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
};
});