Skip to content

Commit b793073

Browse files
committed
update titla example
1 parent 7483c09 commit b793073

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/tilda-demo.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
jQuery(document).ready(function($) {
9999

100100
$('#tilda').tilda(function(command, terminal) {
101-
terminal.echo('you type command "' + command + '"');
101+
if (command) {
102+
terminal.echo('you type command "' + command + '"');
103+
}
102104
});
103105
});
104106

0 commit comments

Comments
 (0)