forked from FOSS/BangleApps
Test
parent
65078cffef
commit
094d518180
|
@ -26,8 +26,9 @@ function showChangeLog(appid) {
|
||||||
function showReadme(appid) {
|
function showReadme(appid) {
|
||||||
var app = appNameToApp(appid);
|
var app = appNameToApp(appid);
|
||||||
function show(contents) {
|
function show(contents) {
|
||||||
|
document.contents = contents;
|
||||||
if (!contents) return;
|
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"));
|
httpGet(`apps/${appid}/README.md`).then(show).catch(()=>show("No README available"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue