Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Fixed the total jumps not updating and the clipboard not updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
winneon committed May 19, 2017
1 parent 643e4f6 commit 886d73a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A desktop front-end for Spansh's neutron router.",
"author": "Jesse Bryan <[email protected]>",
"productName": "Neutron",
"version": "0.2.7",
"version": "0.2.8",
"main": "index.js",
"dependencies": {
"babel-preset-es2015": "6.24.1",
Expand Down
7 changes: 4 additions & 3 deletions lib/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,16 @@ class Container extends React.Component {
} else {
let jumps = 0

for (let i = this.route.pos; i < this.route.system_jumps.length; i++){
if (!isNaN(this.route.system_jumps[i].jumps)){
jumps = jumps + this.route.system_jumps[i].jumps
for (let i = this.route.pos; i < this.route.systems.length; i++){
if (!isNaN(this.route.systems[i].jumps)){
jumps = jumps + this.route.systems[i].jumps
}
}

document.querySelector('div.totalJumpsLeft').innerHTML = jumps
}

clipboard.clear()
clipboard.writeText(this.route.systems[this.route.pos].system)
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "neutron",
"description": "A desktop front-end for Spansh's neutron router.",
"author": "Jesse Bryan <[email protected]>",
"version": "0.2.7",
"version": "0.2.8",
"xo": {
"space": true,
"semicolon": false
Expand Down

0 comments on commit 886d73a

Please sign in to comment.