constructor(document, settings) {
    this.document = document
    this.settings = settings
    const theme = settings.get('theme')
    const rootEl = this.document.querySelector('#tabs')
    this.tabs = new Tabs(rootEl, theme)
    ipc.on('tab-change', (evt, direction) => {
      this.tabs.changeTab(direction)
    }) 
  }
Start application

@param {Element} document The html document
@param {Object} settings Application settings coming from electron-config