# HG changeset patch # User Nicholas Jillings # Date 1432913630 -3600 # Node ID 1265e2aebf17f54ebf225319b306ee5a9076ccc5 # Parent ec9a867e4512f8b1af1d85b39505fae73b2554b5 Bug #1255: Will show a console warning if projectReturn is not set and assume projectReturn is "null". diff -r ec9a867e4512 -r 1265e2aebf17 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 ec9a867e4512 -r 1265e2aebf17 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