File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4242 QueryParams . prototype . get = function ( paramName ) {
4343 if ( paramsMap && paramsMap [ paramName ] ) {
4444 if ( paramsMap [ paramName ] . length === 1 ) {
45- return JSON . parse ( JSON . stringify ( paramsMap [ paramName ] [ 0 ] ) ) ;
45+ return JSON . parse ( decodeURIComponent ( JSON . stringify ( paramsMap [ paramName ] [ 0 ] ) ) ) ;
4646 } else {
47- return JSON . parse ( JSON . stringify ( paramsMap [ paramName ] ) ) ;
47+ return JSON . parse ( decodeURIComponent ( JSON . stringify ( paramsMap [ paramName ] ) ) ) ;
4848 }
4949 }
5050 return null ;
5656 * The returned value is Immutable i.e. updating the returned values does not affect the actual params in any way.
5757 */
5858 QueryParams . prototype . getAll = function ( ) {
59- return JSON . parse ( JSON . stringify ( paramsMap || null ) ) ;
59+ return JSON . parse ( decodeURIComponent ( JSON . stringify ( paramsMap || null ) ) ) ;
6060 } ;
6161
6262 /**
Original file line number Diff line number Diff line change 11{
22 "name" : " js-queryparams" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " A JavaScript library to retrieve the query parameters with cross browser compatibility." ,
55 "main" : " index.js" ,
66 "keywords" : [
You can’t perform that action at this time.
0 commit comments