mirror of https://github.com/espruino/BangleApps
Correctly set shouldEscapeHtml variable default
parent
094d518180
commit
e4431987d8
|
@ -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(() => {});
|
||||
}
|
||||
|
|
2
js/ui.js
2
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(`<div class="modal active">
|
||||
|
|
Loading…
Reference in New Issue