Update rfb.js

fix to prevent typescript compilation errors.
This commit is contained in:
shaneharris 2017-06-03 10:40:49 +01:00 committed by GitHub
parent dc78b4577f
commit 885c2597b9
1 changed files with 1 additions and 1 deletions

View File

@ -1009,7 +1009,7 @@ RFB.prototype = {
} else {
return this._fail("Authentication failure");
}
return false;
//return false; causes { [TypeScript error: novnc/core/rfb.js(1012,17): Error TS7027: Unreachable code detected.]
case 2:
return this._fail("Too many authentication attempts");
default: