Skip to content

Commit

Permalink
Log the message to the console before notifying
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 24, 2012
1 parent f2d1b16 commit 60d410b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/backbone/helpers/utils.js.coffee
Expand Up @@ -4,6 +4,8 @@ class Kandan.Helpers.Utils
@browserTabFocused: true

@notifyInTitleIfRequired: (activityAttributes) ->
console.log(activityAttributes)

if Kandan.Data.Channels.activeChannelId() == activityAttributes.channel_id and activityAttributes.action == "message" and @browserTabFocused != true
Kandan.Plugins.MusicPlayer.playAudioNotice()
@unreadActivities += 1
Expand Down

0 comments on commit 60d410b

Please sign in to comment.