Skip to content

Commit

Permalink
Merge pull request #72 from OpenBCI/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
daniellasry authored Jan 14, 2019
2 parents 3d87ee7 + 9efa0d9 commit f6035df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
body {
background-color: #284470;
}
h1 {
h1, p {
text-align: center;
margin: auto;
width: 50%;
Expand All @@ -22,6 +22,7 @@
<body>
<div style="width:100%; height:100%">
<h1 id="connection">OpenBCI Electron Hub</h1>
<p>Version: <span id="versionText">Unknown</span></p>
<div>
<button id="quitButton" class="quitBtn">Quit OpenBCI Hub</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openbci-electron-hub",
"productName": "OpenBCIHub",
"description": "OpenBCIHub",
"version": "2.0.3",
"version": "2.0.4",
"author": "AJ Keller <[email protected]>",
"copyright": "© 2018, OpenBCI inc.",
"homepage": "http://openbci.com",
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.0.4

### New Features

- Added version number to the HUB's display

# v2.0.3

### Bug Fixes
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ipcRenderer } from 'electron';
import { remote } from 'electron'

// document.addEventListener('DOMContentLoaded', () => {
// let n = new Notification('You did it!', {
Expand All @@ -15,3 +16,5 @@ import { ipcRenderer } from 'electron';
document.getElementById("quitButton").addEventListener("click", function(){
ipcRenderer.send('quit');
});

document.getElementById("versionText").innerHTML = remote.app.getVersion();

0 comments on commit f6035df

Please sign in to comment.