Use ‘atom-workspace’ custom tag name for WorkspaceElement

This commit is contained in:
Nathan Sobo
2014-10-08 11:47:46 -07:00
parent eedf4894ae
commit 8941b97ed2
12 changed files with 24 additions and 26 deletions

View File

@@ -13,5 +13,5 @@ console.log "Window load time: #{atom.getWindowLoadTime()}ms"
# Workaround for focus getting cleared upon window creation
windowFocused = ->
window.removeEventListener('focus', windowFocused)
setTimeout (-> document.querySelector('.workspace').focus()), 0
setTimeout (-> document.querySelector('atom-workspace').focus()), 0
window.addEventListener('focus', windowFocused)