1
0
Fork 0
master
Paul Cockrell 2020-04-06 17:01:41 +01:00
parent 65078cffef
commit 094d518180
1 changed files with 2 additions and 1 deletions

View File

@ -26,8 +26,9 @@ function showChangeLog(appid) {
function showReadme(appid) {
var app = appNameToApp(appid);
function show(contents) {
document.contents = contents;
if (!contents) return;
showPrompt(app.name + " README", marked(contents), {ok: true}, false).catch(() => {});
showPrompt(app.name + " Documentation", marked(contents), {ok: true}, false).catch(() => {});
}
httpGet(`apps/${appid}/README.md`).then(show).catch(()=>show("No README available"));
}