From 7159b127e2995dddb232ca97c1c8cb71f4d7a4d5 Mon Sep 17 00:00:00 2001 From: David Howell Date: Tue, 24 Oct 2017 20:25:09 +1030 Subject: [PATCH] Use process.platform not os.platform() --- app/src/app-env.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/app-env.es6 b/app/src/app-env.es6 index 9e3026190..9c28992e6 100644 --- a/app/src/app-env.es6 +++ b/app/src/app-env.es6 @@ -2,7 +2,6 @@ /* eslint import/no-dynamic-require: 0 */ import _ from 'underscore'; import fs from 'fs'; -import os from 'os'; import path from 'path'; import { ipcRenderer, remote } from 'electron'; import { Emitter } from 'event-kit'; @@ -586,7 +585,7 @@ export default class AppEnvConstructor { // Extended: Move current window to the center of the screen. center() { - if (os.platform() === 'linux') { + if (process.platform === 'linux') { let dimensions = this.getWindowDimensions(); let bounds = remote.screen.getDisplayMatching(dimensions).bounds; let x = bounds.x + ((bounds.width - dimensions.width) / 2);