Mercurial > hg > webaudioevaluationtool
changeset 2983:bc33aca9f8f1
Apply showdown to exit texts
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 27 Feb 2018 16:13:44 +0000 |
parents | b3ebd07e7a0f |
children | 720c88e4cabf |
files | js/core.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Sun Feb 04 11:16:20 2018 +0000 +++ b/js/core.js Tue Feb 27 16:13:44 2018 +0000 @@ -415,10 +415,11 @@ } } storage.SessionKey.finish().then(function (resolved) { + var converter = new showdown.Converter(); if (typeof specification.returnURL == "string" && specification.returnURL.length > 0) { window.location = specification.returnURL; } else { - popup.popupContent.textContent = specification.exitText; + popup.popupContent.innerHTML = converter.makeHtml(specification.exitText); } }, function (message) { console.log("Save: Error! " + message.textContent);