mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
20 lines
449 B
JavaScript
20 lines
449 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);
|
|
});
|
|
|