diff --git a/js/index.js b/js/index.js index a7e44b67e..be9452061 100644 --- a/js/index.js +++ b/js/index.js @@ -26,7 +26,6 @@ function showChangeLog(appid) { function showReadme(appid) { var app = appNameToApp(appid); function show(contents) { - document.contents = contents; if (!contents) return; showPrompt(app.name + " Documentation", marked(contents), {ok: true}, false).catch(() => {}); } diff --git a/js/ui.js b/js/ui.js index 8048bbf93..616a92555 100644 --- a/js/ui.js +++ b/js/ui.js @@ -99,7 +99,7 @@ function showToast(message, type) { /// Show a yes/no prompt function showPrompt(title, text, buttons, shouldEscapeHtml) { if (!buttons) buttons={yes:1,no:1}; - if (!shouldEscapeHtml) shouldEscapeHtml = true; + if (typeof(shouldEscapeHtml) === 'undefined' || shouldEscapeHtml === null) shouldEscapeHtml = true; return new Promise((resolve,reject) => { var modal = htmlElement(`