Mercurial > hg > webaudioevaluationtool
changeset 2335:e22ec7b6cfbd
If returnURL is not provided now the correct message is displayed #60
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Tue, 10 May 2016 16:55:06 +0100 |
parents | 170b024563ab |
children | 1111763a695a d347dbab980d |
files | js/core.js |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Tue May 10 11:51:48 2016 +0100 +++ b/js/core.js Tue May 10 16:55:06 2016 +0100 @@ -465,10 +465,8 @@ window.onbeforeunload = undefined; var file = response.getElementsByTagName("file")[0]; console.log("Save: OK, written "+file.getAttribute("bytes")+"B"); - if (typeof specification.returnURL == "string") { - if (specification.returnURL.length > 0) { + if (typeof specification.returnURL == "string" && specification.returnURL.length > 0) { window.location = specification.returnURL; - } } else { popup.popupContent.textContent = specification.exitText; }