# HG changeset patch # User Nicholas Jillings # Date 1432913630 -3600 # Node ID ea6424dc5f041e8d390e20e363dacccc3992c39f # Parent 04fcd51441e5bdfa19dc0b7d6b74bf6f985566aa Bug #1255: Will show a console warning if projectReturn is not set and assume projectReturn is "null". diff -r 04fcd51441e5 -r ea6424dc5f04 ape.js --- a/ape.js Fri May 29 16:27:05 2015 +0100 +++ b/ape.js Fri May 29 16:33:50 2015 +0100 @@ -179,7 +179,13 @@ pagetitle.appendChild(titleSpan); // Store the return URL path in global projectReturn - projectReturn = xmlSetup[0].attributes['projectReturn'].value; + projectReturn = xmlSetup[0].attributes['projectReturn']; + if (projectReturn == undefined) { + console.log("WARNING - projectReturn not specified! Will assume null."); + projectReturn = "null"; + } else { + projectReturn = projectReturn.value; + } // Create Interface buttons! var interfaceButtons = document.createElement('div'); diff -r 04fcd51441e5 -r ea6424dc5f04 example_eval/project.xml --- a/example_eval/project.xml Fri May 29 16:27:05 2015 +0100 +++ b/example_eval/project.xml Fri May 29 16:33:50 2015 +0100 @@ -1,6 +1,6 @@ - + Please enter your location. Please listen to all mixes