Skip to content

Commit b9e7473

Browse files
committed
improve public tool's default state
1 parent 3d9aae6 commit b9e7473

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/doc-support/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ $(document).ready(function(){
1212
});
1313

1414
function run(){
15+
if($input.val().length < 1){
16+
return $output.val("Paste your schema");
17+
}
1518
Doc.load($input.val());
1619
$output.val(Doc.generate());
1720
if(Doc.schema !== null){
@@ -21,6 +24,4 @@ function run(){
2124
} else {
2225
$download.addClass("d-none");
2326
}
24-
//$input.height( $input[0].scrollHeight );
25-
//$output.height( $output[0].scrollHeight );
2627
}

0 commit comments

Comments
 (0)