message: Updated selection listener
diff: @@ -8,6 +8,15 @@ import {message} from 'src/helpers/chrome-api'
  document.addEventListener('mouseup', evt => {
  if (window.name === 'saladict-frame') { return }
  + let text = window.getSelection().toString()
  + if (!text) {
  + // empty message
  + message.send({msg: 'SELECTION'})
  + } else {
  + // if user click on a selected text,
  + // getSelection would reture the text before it disappears
  + // delay to wait for selection get cleared
  + setTimeout(() => {
  let text = window.getSelection().toString()
  // fire anyway, even with no selection
  message.send({
  @@ -15,4 +24,6 @@ document.addEventListener('mouseup', evt => {
  text,
  ctrlKey: evt.ctrlKey
  })
  + }, 0)
  + }
  }, true)
  