# HG changeset patch # User www-data # Date 1462897263 -3600 # Node ID 1111763a695a761f13020c9587f0f23f182fa8a1 # Parent eae8aebb8214ebc5e520d5f91607a9b5483cd8a3# Parent e22ec7b6cfbd28c8e68698983e3488abe5627ef1 Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool diff -r eae8aebb8214 -r 1111763a695a js/core.js --- 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; }