From 420db855ce82b00d572f9f3b418ec25af4666bc5 Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Mon, 18 Jun 2018 17:05:47 +0000 Subject: [PATCH] Fixing url and shorten url --- static/js/index.js | 5 +++-- webrun.sh | 0 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 webrun.sh diff --git a/static/js/index.js b/static/js/index.js index 8d5f778..991c45e 100755 --- a/static/js/index.js +++ b/static/js/index.js @@ -30,11 +30,11 @@ $(function() { let url_string = window.location.href; let url = new URL(url_string); - room = url.searchParams.get('room'); + room = url.searchParams.get('r'); console.log(room); - socket = io('https://stream.gto.to/'); + socket = io('https://gto.to/'); $('#call').on('click', function(e) { presenter(); e.preventDefault(); } ); $('#viewer').on('click', function(e) { viewer(); e.preventDefault(); } ); @@ -200,6 +200,7 @@ function currentRoom() { return room; } + /** * Lightbox utility (to display media pipeline image in a modal dialog) */ diff --git a/webrun.sh b/webrun.sh old mode 100644 new mode 100755