Mercurial > hg > webaudioevaluationtool
changeset 2970:6cfb6c49c331
#262 Better catcher for returnURL undefined in SessionKey
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 12 Jan 2018 13:18:58 +0000 |
parents | 6e51b9734eab |
children | d962cce75063 |
files | js/core.js |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Fri Jan 12 13:17:09 2018 +0000 +++ b/js/core.js Fri Jan 12 13:18:58 2018 +0000 @@ -3650,6 +3650,11 @@ }; this.SessionKey = (function (parent) { + var returnURL = ""; + if (window.returnURL !== undefined) { + returnURL = String(window.returnURL); + } + function postUpdate() { // Return a new promise. var hold = document.createElement("div");