cleaning up

This commit is contained in:
Anton Georgiev 2014-10-29 19:39:13 +00:00
parent d6db3ce1ea
commit 22ac2f7bb4
3 changed files with 9 additions and 15 deletions

View File

@ -789,8 +789,8 @@ class Meteor.WhiteboardPaperModel
# console.log "yEnd: #{yEnd}" # console.log "yEnd: #{yEnd}"
# console.log "boardWidth: #{boardWidth}" # console.log "boardWidth: #{boardWidth}"
# console.log "boardHeight: #{boardHeight}" # console.log "boardHeight: #{boardHeight}"
console.log "imageWidth: #{imageWidth}" #console.log "imageWidth: #{imageWidth}"
console.log "imageHeight: #{imageHeight}" #console.log "imageHeight: #{imageHeight}"
currentPresentation = Meteor.Presentations.findOne({"presentation.current": true}) currentPresentation = Meteor.Presentations.findOne({"presentation.current": true})
presentationId = currentPresentation?.presentation?.id presentationId = currentPresentation?.presentation?.id

View File

@ -12,16 +12,10 @@
console.log "\n\nurl=#{url}\n\n" console.log "\n\nurl=#{url}\n\n"
#extract the meeting_id, user_id, auth_token, etc from the uri #extract the meeting_id, user_id, auth_token, etc from the uri
if url.indexOf("meeting_id") > -1 # if the URL is /meeting_id=...&... if url.indexOf("meeting_id") > -1 # if the URL is /meeting_id=...&...
urlParts = url.split("&"); urlParts = url.split("&")
meetingId = urlParts[0]?.split("=")[1]
meetingId = urlParts[0]?.split("=")[1]; userId = urlParts[1]?.split("=")[1]
console.log "meetingId=" + meetingId authToken = urlParts[2]?.split("=")[1]
userId = urlParts[1]?.split("=")[1];
console.log "userId=" + userId
authToken = urlParts[2]?.split("=")[1];
console.log "authToken=" + authToken
if meetingId? and userId? and authToken? if meetingId? and userId? and authToken?
Meteor.call("validateAuthToken", meetingId, userId, authToken) Meteor.call("validateAuthToken", meetingId, userId, authToken)

View File

@ -67,7 +67,7 @@ class Meteor.RedisPubSub
if message?.header? and message?.payload? if message?.header? and message?.payload?
unless message.header.name in ignoredEventTypes unless message.header.name in ignoredEventTypes
console.log "eventType=" + message.header.name #+ "\n" console.log "eventType=" + message.header.name #+ "\n"
console.log jsonMsg #console.log jsonMsg
# handle voice events # handle voice events
if message.header.name in ['user_left_voice_message', 'user_joined_voice_message', 'user_voice_talking_message', 'user_voice_muted_message'] if message.header.name in ['user_left_voice_message', 'user_joined_voice_message', 'user_voice_talking_message', 'user_voice_muted_message']