1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/ServerStatus.js
2013-07-09 22:11:57 -07:00

12 lines
262 B
JavaScript

window.ApiRoot = '/api';
var statusText = $.ajax({
type : 'GET',
url : window.ApiRoot + '/system/status',
async: false
}).responseText;
window.ServerStatus = JSON.parse(statusText);
$('#footer-region .version').html(window.ServerStatus.version);