       #   else if e.target.value is "off"
       #     @disableNotification()
       @wireroom.socket.on "says", (message) =>
-        console.log "notification", message
         return if new Date() - @wireroom.BootTime < 3000 or @settings.disableNotification or
           message.ident is @wireroom.Identifier
         @showNotification "/images/opmsg48x48.jpg", message.nickname + " says", message.message

    disableNotification: false

  constructor: (@wireroom, @options) ->
    that = this
    ifSupport = (allowed) =>
      console.log "Notification is supported."
      # $("#window-notification").bind "change", (e) ->

          ), 3000
        x.show()

  enableNotification: (cb) ->
    return unless window.webkitNotifications
    permission = window.webkitNotifications.checkPermission()
    unless permission is 0
      window.webkitNotifications.requestPermission =>
        @settings.disableNotification = false
        cb() if $.isFunction(cb)
    else
      @settings.disableNotification = false
      cb()  if $.isFunction(cb)
    false
