zolodickk commited on
Commit
1d7e3ef
·
verified ·
1 Parent(s): 75f4b2a

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +1 -1
static/script.js CHANGED
@@ -47,7 +47,7 @@ function stopProcess(message) {
47
  //This Code is used to Communicate b/w Client & Server via SOCKETIO
48
  //var socket = io.connect('http://127.0.0.1:5000/');
49
 
50
- var socket = io.connect();
51
 
52
  // Variabel untuk menyimpan kata-kata berturut-turut
53
  let consecutiveWords = [];
 
47
  //This Code is used to Communicate b/w Client & Server via SOCKETIO
48
  //var socket = io.connect('http://127.0.0.1:5000/');
49
 
50
+ var socket = io.connect('https://' + document.domain + ':' + location.port);
51
 
52
  // Variabel untuk menyimpan kata-kata berturut-turut
53
  let consecutiveWords = [];