Sfoglia il codice sorgente

connect to whatever server we're on

Rebecca Murphey 12 anni fa
parent
commit
4ca99d4264
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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');