   reader.readAsArrayBuffer file
 
 window.addEventListener 'drop', (event) ->
+  return if draghint.classList.contains 'hidden'
   event.preventDefault()
   draghint.classList.remove 'hover'
   if event.dataTransfer.files.length > 0

        break
  else if settings.extensions[extension]
    rom = buffer
  if rom
    stop() if retro.running
    play rom, extension
    .catch ->
      draghint.classList.remove 'hidden'
  else
    draghint.classList.remove 'hidden'

load = (file) ->

    retro.player.inputs = [
      buttons: {}
    ]
    autosaver = setInterval ->
      localForage.setItem retro.md5, new Uint8Array retro.save
    , 1000
    window.addEventListener 'keydown', onkey
    window.addEventListener 'keyup', onkey
    retro.start()

loadData = (filename, buffer) ->
  draghint.classList.add 'hidden'
