From 0163ffcb435a8d5584a934afcf3eda0156c14fdd Mon Sep 17 00:00:00 2001 From: Rebecca Murphey Date: Sun, 17 Jun 2012 18:43:29 -0400 Subject: [PATCH] use current host/port --- js/slidenotes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/slidenotes.js b/js/slidenotes.js index 9a4f1525..ef05062a 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;