     getActiveState: -> { enabled: isEnabledForUrl }
     disableVimium: disableVimium
 
-  chrome.extension.onMessage.addListener (request, sender, sendResponse) ->
+  chrome.runtime.onMessage.addListener (request, sender, sendResponse) ->
     # in the options page, we will receive requests from both content and background scripts. ignore those
     # from the former.
     return if sender.tab and not sender.tab.url.startsWith 'chrome-extension://'

  eventListeners: {}

  init: ->
    @port = chrome.extension.connect({ name: "settings" })
    @port.onMessage.addListener(@receiveMessage)

  get: (key) -> @values[key]


  onUpdateLinkClicked: (event) ->
    HUD.hideUpgradeNotification()
    chrome.runtime.sendMessage({ handler: "upgradeNotificationClosed" })

  hideUpgradeNotification: (clickEvent) ->
    Tween.fade(HUD.upgradeNotificationElement(), 0, 150,
