File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,15 @@ <h1>JSONCrush Demo - Compress JSON into URL friendly strings</h1>
4242 const stringToCrush = textarea_JSON . value ;
4343
4444 // Just call JSON crush to crush your string!
45- const crushed = textarea_crushed_uri . value = JSONCrush . crush ( stringToCrush ) ;
45+ const crushed = JSONCrush . crush ( stringToCrush ) ;
4646
4747 // To uncrush call JSONUncrush on the crushed string.
4848 const uncrushed = JSONCrush . uncrush ( crushed ) ;
49- textarea_uncrushed . value = uncrushed ;
5049
5150 // We can verify that the uncrushed string matches the orginal string
5251 div_crush_result . innerHTML = stringToCrush == uncrushed ? "SUCCESS: Strings match!" : "ERROR: Strings don't match!" ;
52+ textarea_crushed_uri . value = crushed ;
53+ textarea_uncrushed . value = uncrushed ;
5354}
5455
5556function PreformUnitTests ( )
You can’t perform that action at this time.
0 commit comments