Skip to content

Commit

Permalink
fixed: broken template functionality in enketo-core-performance-monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Mar 27, 2017
1 parent a08407a commit 898ed95
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ if ( getURLParameter( 'touch' ) === 'true' ) {
$( 'html' ).addClass( 'touch' );
}

// check if HTML form is hardcoded or needs to be retrieved
if ( xform ) {
// Check if HTML form is hardcoded or needs to be retrieved
// note: when running this file in enketo-core-performance-monitor xform = 'null'
if ( xform && xform !== 'null' ) {
$( '.guidance' ).remove();
xform = /^https?:\/\//.test( xform ) ? xform : location.origin + '/' + xform;
$.getJSON( 'http://localhost:8085/transform?xform=' + xform, function( survey ) {
Expand Down

0 comments on commit 898ed95

Please sign in to comment.