From 53431e7a096bc64ea05ca0a7f631166267c05b0a Mon Sep 17 00:00:00 2001 From: kitze Date: Tue, 27 Jun 2017 10:35:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20remove=20platform=20import,=20up?= =?UTF-8?q?date=20to=200.1.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/electron.js | 4 +--- src/App.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index abe77a2..ff9e944 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cra-electron", - "version": "0.1.7", + "version": "0.1.8", "private": true, "dependencies": { "cross-env": "5.0.1", diff --git a/public/electron.js b/public/electron.js index b55e348..160af3d 100644 --- a/public/electron.js +++ b/public/electron.js @@ -2,7 +2,6 @@ const electron = require('electron'); const app = electron.app; const BrowserWindow = electron.BrowserWindow; -const platform = require('os').platform; const path = require('path'); const url = require('url'); const isDev = require('electron-is-dev'); @@ -28,8 +27,7 @@ function initAutoUpdate() { return; } - const platform = platform(); - if (platform === 'linux') { + if (process.platform === 'linux') { return; } diff --git a/src/App.js b/src/App.js index 07e4455..1d385f0 100644 --- a/src/App.js +++ b/src/App.js @@ -11,7 +11,7 @@ class App extends Component {

React + Electron = 😍

- Version: 0.1.7 + Version: 0.1.8

);