mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
UI Cleanup - Updated Shared and Shims subtrees.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
var $ = require('jquery');
|
||||
|
||||
module.exports = {
|
||||
get : function(resource){
|
||||
get : function(resource) {
|
||||
var url = window.NzbDrone.ApiRoot + '/' + resource;
|
||||
var _data;
|
||||
$.ajax({
|
||||
url : url,
|
||||
async : false
|
||||
}).done(function(data){
|
||||
}).done(function(data) {
|
||||
_data = data;
|
||||
}).error(function(xhr, status, error){
|
||||
}).error(function(xhr, status, error) {
|
||||
throw error;
|
||||
});
|
||||
return _data;
|
||||
|
||||
Reference in New Issue
Block a user