mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
23 lines
571 B
JavaScript
23 lines
571 B
JavaScript
window.NzbDrone.ApiRoot = '/api';
|
|
|
|
var statusText = $.ajax({
|
|
type : 'GET',
|
|
url : window.NzbDrone.ApiRoot + '/system/status',
|
|
async: false,
|
|
headers: {
|
|
Authorization: window.NzbDrone.ApiKey
|
|
}
|
|
}).responseText;
|
|
|
|
window.NzbDrone.ServerStatus = JSON.parse(statusText);
|
|
|
|
var footerText = window.NzbDrone.ServerStatus.version;
|
|
|
|
$(document).ready(function () {
|
|
if (window.NzbDrone.ServerStatus.branch != 'master') {
|
|
footerText += '</br>' + window.NzbDrone.ServerStatus.branch;
|
|
}
|
|
$('#footer-region .version').html(footerText);
|
|
});
|
|
|