constructor() {
    this.store = new Store({
      name: 'preferences',
      clearInvalidConfig: true
    });
  }
The preferences are stored in the electron store 'preferences.json'.
The electron process uses this module to get the preferences.