message: sparkles: Opening an already opened tab will now load it instead of nothing
diff: @@ -34,11 +34,12 @@ function Tab({
  })
  const classSelector = `${directory}`
  -
  - if( document.getElementsByClassName(classSelector).length >= 1 ){
  + const openedTabs = document.getElementsByClassName(classSelector)
  + if( openedTabs.length >= 1 ){
  /**
  * Tab already exists so it won't be rendered again
  */
  + openedTabs[0].props.state.emit('focusedMe')
  return {
  isCancelled : true
  }
  @@ -102,25 +103,25 @@ function Tab({
  }
  },
  events:{
  - mounted(target){
  - target.directory = directory
  + mounted(){
  + this.directory = directory
  tabState.on('focusedMe',()=>{
  - RunningConfig.data.focusedTab = target
  - unfocusTabs(target)
  - target.focusEditor()
  -
  - target.props.active = true
  + RunningConfig.data.focusedTab = this
  + RunningConfig.data.focusedPanel = this.parentElement.parentElement
  + unfocusTabs(this)
  + this.focusEditor()
  + this.props.active = true
  })
  tabState.on('unfocusedMe',()=>{
  - target.props.active = false
  + this.props.active = false
  })
  tabState.on('savedMe',()=>{
  - if(!target.props.saved){
  + if(!this.props.saved){
  isSaved(target,true)
  - target.props.saved = true
  + this.props.saved = true
  RunningConfig.emit('aTabHasBeenSaved',{
  tabElement:this,
  path:directory,
  @@ -130,9 +131,9 @@ function Tab({
  })
  tabState.on('unsavedMe',()=>{
  - if(target.props.saved){
  + if(this.props.saved){
  isSaved(target,false)
  - target.props.saved = false
  + this.props.saved = false
  RunningConfig.emit('aTabHasBeenUnSaved',{
  tabElement:this,
  path:directory,
  @@ -143,7 +144,7 @@ function Tab({
  tabState.on('changePanel',(newPanel)=>{
  tabState.data.panel = newPanel
  - unfocusTabs(target)
  + unfocusTabs(this)
  })
  tabState.on('close',(newPanel)=>{
  @@ -154,13 +155,13 @@ function Tab({
  }
  })
  - unfocusTabs(target)
  + unfocusTabs(this)
  - RunningConfig.data.focusedTab = target
  - target.props.active = tabState.data.active
  - target.props.saved = tabState.data.saved
  - target.props.state = tabState
  - target.isSaved = true
  + RunningConfig.data.focusedTab = this
  + this.props.active = tabState.data.active
  + this.props.saved = tabState.data.saved
  + this.props.state = tabState
  + this.isSaved = true
  }
  },
  props:["active"]
  