From 16eeb7daad7fb2a8c190642e05b7f5eea6f1d525 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Thu, 3 May 2018 09:44:59 +0300 Subject: [PATCH] update, load mixer stream when alt+l is pressed --- assets/js/sumorobot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/sumorobot.js b/assets/js/sumorobot.js index f2e144c..22dcd06 100755 --- a/assets/js/sumorobot.js +++ b/assets/js/sumorobot.js @@ -436,6 +436,10 @@ window.onload = function() { $("#panel").toggle(); break; case 76: // l + /* load the Mixer stream */ + if ($("#stream").is(':empty')) { + $("#stream").html(''); + } $("#stream").toggle(); /* toggle live steam visible */ liveStreamVisible = !liveStreamVisible; @@ -572,9 +576,6 @@ window.onload = function() { $("#panel").hide(); }); - /* load the Mixer stream */ - $("#stream").html(''); - /* set a click listener on the document */ $(document).click(function(e) { var target = e.target;