Skip to content

Commit

Permalink
Merge pull request #27 from blackpr/patch-1
Browse files Browse the repository at this point in the history
fix error in strict mode
  • Loading branch information
aadsm committed Jan 4, 2017
2 parents 62986ff + 35669f8 commit 274aceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/latin1prober.js
Expand Up @@ -132,6 +132,9 @@ jschardet.Latin1Prober = function() {
}

this.getConfidence = function() {
var confidence;
var constants;

if( this.getState() == jschardet.Constants.notMe ) {
return 0.01;
}
Expand Down

0 comments on commit 274aceb

Please sign in to comment.