aboutsummaryrefslogtreecommitdiff
path: root/clojurescript/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'clojurescript/test.html')
-rw-r--r--clojurescript/test.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/clojurescript/test.html b/clojurescript/test.html
index 92cd1f32..17d23003 100644
--- a/clojurescript/test.html
+++ b/clojurescript/test.html
@@ -30,7 +30,8 @@
document.body.appendChild( s );
},
posttext: function() {
- print( "user=> " + jsrepl.text.value.replace("\n","\n "));
+ var text = jsrepl.text.value.replace(/\n$/,"");
+ print( "user=> " + text.replace(/\n/g,"\n "));
jsrepl.text.value = "";
},
state: function(s,m) {
@@ -51,7 +52,7 @@
e = e || event;
if( e.keyCode == 13 ) {
var s = document.createElement('script');
- s.src = "http://localhost:8081/" +
+ s.src = "http://mycroft:8080/" +
escape(jsrepl.text.value).replace(/\+/,'%2b');
document.body.appendChild( s );
}