# HG changeset patch # User Giulio Moro # Date 1462895706 -3600 # Node ID e22ec7b6cfbd28c8e68698983e3488abe5627ef1 # Parent 170b024563abd1af900d17d13646f90dd3251493 If returnURL is not provided now the correct message is displayed #60 diff -r 170b024563ab -r e22ec7b6cfbd js/core.js --- 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; }