Skip to content

Commit

Permalink
updates for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed Mar 29, 2017
1 parent c90b0ee commit a963759
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ autoUpdater.on('update-not-available', function(){
autoUpdater.on('update-downloaded', function(){
console.log('update downloaded')
const updateNotification = notifier.notify('', {
message: "Update available!",
message: "Update downloaded!",
buttons: ['Install', 'Cancel'],
duration: 20000,
icon: path.join(__dirname, 'icon.png')
Expand Down
8 changes: 7 additions & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ function clearScreen() {
content.removeChild(content.lastChild)
}

function clearAllTimeouts() {
clearTimeout(trialTimeoutID)
}



// show text instructions on screen
Expand Down Expand Up @@ -496,12 +500,14 @@ function showNextTrial() {
clearTimeout(trialTimeoutID)
closeNav()
clearScreen()
t = t += 1
t += 1
tReal = t-1
picNum.value = t
if (tReal >= maxTrials) {
clearScreen()
rec.stopRec()
clearAllTimeouts()
openNav()
return false
}
var img = document.createElement("img")
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PNT",
"version": "1.2.5",
"version": "1.3.0",
"description": "The PNT is a 175-item picture naming test developed in the Language and Aphasia Lab of MRRI for the psycholinguistic exploration of lexical access in nonaphasic and aphasic speakers (Roach et al., 1996).",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit a963759

Please sign in to comment.