mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
d259b5c394
Added webserver::IRequest/IResponse/IDelegate interfaces.
23 lines
532 B
JavaScript
23 lines
532 B
JavaScript
window.Aseprite = window.Aseprite || {};
|
|
(function(Aseprite) {
|
|
'use strict';
|
|
|
|
Aseprite.host = 'http://127.0.0.1:10453';
|
|
|
|
Aseprite.get = function(uri, callback) {
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: Aseprite.host + uri,
|
|
dataType: 'json',
|
|
cache: false,
|
|
success: function(data) {
|
|
callback(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
Aseprite.get_version = function(callback) {
|
|
Aseprite.get('/version', callback);
|
|
}
|
|
})(window.Aseprite);
|