antosdk-apps/About/build/debug/main.js

36 lines
856 B
JavaScript
Raw Normal View History

2021-04-18 18:49:53 +02:00
(function() {
var About;
About = class About extends this.OS.application.BaseApplication {
constructor(args) {
super("About", args);
}
main() {
var me, path;
me = this;
this.container = this.find("container");
path = "https://raw.githubusercontent.com/lxsang/antos/master/README.md";
path.asFileHandle().read().then(function(txt) {
var converter;
converter = new showdown.Converter();
return ($(me.container)).html(converter.makeHtml(txt));
}).catch(() => {
return this.notify(__("Unable to read: {0}", path));
});
return this.find("btnclose").onbtclick = () => {
return this.quit();
};
}
};
About.singleton = true;
About.dependencies = ["os://scripts/showdown.min.js"];
this.OS.register("About", About);
}).call(this);