Skip to content

Commit

Permalink
#81 add doc about encode/decode requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 16, 2015
1 parent af468d3 commit 1118948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirejs-plugins/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ define( function( require ) {
var getPath = function( locale ) {return getProjectURL( name, parentRequire ) + 'strings/' + project.toLowerCase().split( '_' ).join( '-' ) + '-strings_' + locale + '.json' + suffix;};
var fallbackStringPath = getPath( FALLBACK_LOCALE );

// strings may be specified via the 'strings' query parameter
// strings may be specified via the 'strings' query parameter, value is expected to be encoded to avoid URI-reserved characters
var queryParameterStrings = JSON.parse( decodeURIComponent( window.phetcommon.getQueryParameter( 'strings' ) || '{}' ) );

var locale;
Expand Down

0 comments on commit 1118948

Please sign in to comment.