Mercurial > hg > webaudioevaluationtool
diff js/core.js @ 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 | ee5e2db32f7c |
children | d347dbab980d |
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; }