Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 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 | 1ae8c03dd6a6 |
comparison
equal
deleted
inserted
replaced
2982:b3ebd07e7a0f | 2983:bc33aca9f8f1 |
---|---|
413 if (specification.projectReturn.substr(0, 4) == "http") { | 413 if (specification.projectReturn.substr(0, 4) == "http") { |
414 projectReturn = specification.projectReturn; | 414 projectReturn = specification.projectReturn; |
415 } | 415 } |
416 } | 416 } |
417 storage.SessionKey.finish().then(function (resolved) { | 417 storage.SessionKey.finish().then(function (resolved) { |
418 var converter = new showdown.Converter(); | |
418 if (typeof specification.returnURL == "string" && specification.returnURL.length > 0) { | 419 if (typeof specification.returnURL == "string" && specification.returnURL.length > 0) { |
419 window.location = specification.returnURL; | 420 window.location = specification.returnURL; |
420 } else { | 421 } else { |
421 popup.popupContent.textContent = specification.exitText; | 422 popup.popupContent.innerHTML = converter.makeHtml(specification.exitText); |
422 } | 423 } |
423 }, function (message) { | 424 }, function (message) { |
424 console.log("Save: Error! " + message.textContent); | 425 console.log("Save: Error! " + message.textContent); |
425 createProjectSave("local"); | 426 createProjectSave("local"); |
426 }); | 427 }); |