From: Rebecca Murphey Date: Sun, 17 Jun 2012 22:43:29 +0000 (-0400) Subject: use current host/port X-Git-Tag: 1.4.0~36^2~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0163ffcb435a8d5584a934afcf3eda0156c14fdd;p=reveal.js.git use current host/port --- diff --git a/js/slidenotes.js b/js/slidenotes.js index 9a4f152..ef05062 100644 --- a/js/slidenotes.js +++ b/js/slidenotes.js @@ -3,8 +3,8 @@ var qs = window.location.href.split('?'); if (qs.length > 1 && qs[1].match('receiver')) { return; } - var socket = io.connect('http://localhost:1947'); - + var socket = io.connect(window.location.origin); + Reveal.addEventListener( 'slidechanged', function( event ) { var nextindexh; var nextindexv;