From 77063f40a5fb7631e286f09be1a7ba1cf5f42459 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Wed, 12 Sep 2018 14:12:54 +0200 Subject: [PATCH] update sumo_id and server --- assets/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 5fa93de..9476d10 100755 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,6 +1,6 @@ // The local/remote server URL //var ROBOT_SERVER = '192.168.2.1:80'; -var ROBOT_SERVER = 'ws.achex.ca:4010'; +var ROBOT_SERVER = '165.227.140.64:80'; // The sumorobot object var sumorobot; @@ -204,7 +204,7 @@ window.addEventListener('load', function() { $('.btn-robot-go').click(function() { // Get and validate the selected robot ID var robotId = $('#robot-id').val().trim().toLowerCase(); - if (robotId === '' || /^([a-f0-9]{6})$/.test(robotId) == false) { + if (robotId === '' || /^([a-f0-9]{8})$/.test(robotId) == false) { $('#robot-id, #robot-label').addClass('has-error'); return; } else {