* Start application * * @param {Element} document The html document * @param {Object} settings Application settings coming from electron-config
(document, settings)
| 22 | */ |
| 23 | |
| 24 | constructor(document, settings) { |
| 25 | this.document = document |
| 26 | this.settings = settings |
| 27 | const theme = settings.get('theme') |
| 28 | const rootEl = this.document.querySelector('#tabs') |
| 29 | this.tabs = new Tabs(rootEl, theme) |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Set theme for each page |