1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00
Sonarr/UI/ServerStatus.js

19 lines
448 B
JavaScript

window.ApiRoot = '/api';
var statusText = $.ajax({
type : 'GET',
url : window.ApiRoot + '/system/status',
async: false
}).responseText;
window.ServerStatus = JSON.parse(statusText);
var footerText = window.ServerStatus.version;
$(document).ready(function () {
if (window.ServerStatus.branch != 'master') {
footerText = '</br>' + window.ServerStatus.branch;
}
$('#footer-region .version').html(footerText);
});