Skip to content

Commit a4481ca

Browse files
clean
1 parent b0f8f22 commit a4481ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

5556
function PreformUnitTests()

0 commit comments

Comments
 (0)