Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sammo1235 committed Dec 11, 2024
1 parent e021984 commit f87be1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,10 @@ window.ApplicationCollaboratorsGeneralRoomTracking =
CollaboratorsLog.log("[INIT GENERAL ROOM] ------------------------ channel_name: " + channel_name)

window.App.generalRoom = App.cable.subscriptions.create { channel: "GeneralRoomChannel", channel_name: channel_name, user_id: window.user_id },
connected: ->
console.log("connected to GENERAL ROOM")

received: (data) ->
console.log("receieved data", data.collaborators)

window.general_room_members = data.collaborators
ApplicationCollaboratorsAccessManager.set_access_mode()

disconnected: ->
console.log("disconnected")

there_are_other_collaborators_here: () ->
window.general_room_members &&
window.general_room_members.split('/').length > 1
2 changes: 1 addition & 1 deletion app/assets/javascripts/frontend/form-validation.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ window.FormValidation =
qRef = question.attr("data-question_ref")
qTitle = $.trim(question.find("h2").first().text())

if typeof console != "undefined" && false
if typeof console != "undefined"
console.log "-----------------------------"
console.log("[STEP]: " + stepTitle)
console.log(" [QUESTION] " + qRef + ": "+ qTitle)
Expand Down

0 comments on commit f87be1a

Please sign in to comment.