Skip to content

Commit 877fa70

Browse files
committed
Cleaned up alerts and logs
1 parent a04947e commit 877fa70

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

js/rtc-controller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ var CONTROLLER = window.CONTROLLER = function(phone){
173173
if (idx != -1) userArray.splice(idx, 1)[0]; // User leaving
174174
} else { // New User added to stream/group
175175
if (idx == -1) { // Tell everyone in array of new user first, then add to array.
176-
alert(phone.oneway);
177176
if (!phone.oneway) publishCtrlAll("userJoin", session.number);
178177
userArray.push(session);
179178
}
@@ -222,7 +221,7 @@ var CONTROLLER = window.CONTROLLER = function(phone){
222221
callAuth(m.data);
223222
break;
224223
case "userJoin":
225-
if (phone.oneway){ alert("HERE"); add_to_stream(m.data); }// JOIN STREAM HERE!
224+
if (phone.oneway){ add_to_stream(m.data); }// JOIN STREAM HERE!
226225
else add_to_group(m.data);
227226
break;
228227
case "userLeave":

stream.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
oneway : true,
8888
broadcast : true
8989
});
90-
phone.debug(function(m){ console.log(m); })
90+
//phone.debug(function(m){ console.log(m); })
9191
var ctrl = window.ctrl = CONTROLLER(phone);
9292
ctrl.ready(function(){
9393
form.streamname.style.background="#55ff5b";

0 commit comments

Comments
 (0)