Skip to content

Commit

Permalink
eclipse-theiaGH-4461: From now on, no electron-store will be create…
Browse files Browse the repository at this point in the history
…d by the workers.

Having one for the `isMaster` process is sufficient.

Closes: eclipse-theia#4461
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
  • Loading branch information
Akos Kitta authored and kittaakos committed Mar 4, 2019
1 parent 30298af commit 91f5561
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ const electron = require('electron');
const { join, resolve } = require('path');
const { isMaster } = require('cluster');
const { fork } = require('child_process');
const Storage = require('electron-store');
const electronStore = new Storage();
const { app, shell, BrowserWindow, ipcMain, Menu } = electron;
const applicationName = \`${this.pck.props.frontend.config.applicationName}\`;
if (isMaster) {
const Storage = require('electron-store');
const electronStore = new Storage();
app.on('ready', () => {
const { screen } = electron;
Expand Down

0 comments on commit 91f5561

Please sign in to comment.