Skip to content

Commit

Permalink
🛠 remove platform import, update to 0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
kitze committed Jun 27, 2017
1 parent 914709a commit 53431e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cra-electron",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"dependencies": {
"cross-env": "5.0.1",
Expand Down
4 changes: 1 addition & 3 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -28,8 +27,7 @@ function initAutoUpdate() {
return;
}

const platform = platform();
if (platform === 'linux') {
if (process.platform === 'linux') {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class App extends Component {
<h2>React + Electron = <span role="img" aria-label="love">😍</span></h2>
</div>
<p className="App-intro">
Version: 0.1.7
Version: 0.1.8
</p>
</div>
);
Expand Down

0 comments on commit 53431e7

Please sign in to comment.