   onHide: handleHide
 })
 
-
 panel.port.on 'generate', ((uname, url) ->
   get_pass uname, url, (p) ->
     panel.port.emit 'pass-returned', p

    c = c.replace(/\+/g,"")
    c = c.replace(/=/g,"")

    while c.length < s.length #this could be done O(1), but it's 2AM...
      c = c + "0"
    return_func (c.substring 0, s.length)


        worker.port.emit 'pass', p
    )
    return

# Observer to detect pageload and change icons accordingly

function_on_change_url = (t) ->
  url = re_url.URL(t.url).host
  if !url #for non-url pages
    return

  console.log url

re_tabs.on "ready", function_on_change_url
re_tabs.on "activate", function_on_change_url

#
#
