Skip to content

Commit

Permalink
When annyang is paused, an autorestart will no longer unpause it. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TalAter committed Aug 22, 2016
1 parent 65b6980 commit 8e1fa5e
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = function(grunt) {
browserAMD: {
src: ['annyang.js'],
options: {
specs: 'test/spec/BasicSpec.js',
specs: 'test/spec/*Spec.js',
outfile: 'test/SpecRunner.html',
vendor: ['test/vendor/corti.js', 'test/init_corti.js'],
keepRunner: true,
Expand Down
6 changes: 4 additions & 2 deletions annyang.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,11 @@
}
}
if (timeSinceLastStart < 1000) {
setTimeout(annyang.start, 1000-timeSinceLastStart);
setTimeout(function() {
annyang.start({ paused: pauseListening });
}, 1000-timeSinceLastStart);
} else {
annyang.start();
annyang.start({ paused: pauseListening });
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion annyang.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sites/facebook.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8e1fa5e

Please sign in to comment.