Explorar o código

connect to whatever server we're on

Rebecca Murphey %!s(int64=12) %!d(string=hai) anos
pai
achega
4ca99d4264
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      slidenotes/notes.html

+ 1 - 1
slidenotes/notes.html

@@ -66,7 +66,7 @@
 
     <script>
     var socketId = '{{socketId}}';
-    var socket = io.connect('http://localhost:1947');
+    var socket = io.connect(window.location.origin);
     var notes = document.getElementById('notes');
     var slides = document.getElementById('slides');
     var nextSlide = document.getElementById('next-slide');