pixelbutler
Version:
Low-res bitmap render engine for big screens
21 lines (20 loc) • 477 B
JavaScript
;
var xhr = require('xhr');
var TextLoader = (function () {
function TextLoader(url) {
this.url = url;
}
TextLoader.prototype.load = function (callback) {
xhr({
uri: this.url
}, function (err, resp, body) {
if (err) {
callback(err, null);
} else {
callback(null, body);
}
});
};
return TextLoader;
})();
module.exports = TextLoader;