changeset 2336:1111763a695a

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Tue, 10 May 2016 17:21:03 +0100
parents eae8aebb8214 (current diff) e22ec7b6cfbd (diff)
children cb01bc04ab2c
files
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Tue May 10 12:21:06 2016 +0100
+++ b/js/core.js	Tue May 10 17:21:03 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;
                     }