summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolly Ross <sross@redhat.com>2015-08-04 15:50:20 -0400
committerSolly Ross <sross@redhat.com>2015-08-06 14:47:03 -0400
commit0442e153a1cad88e823926e596bcb3cff0aacabe (patch)
treea8d912c0f3fa38b7c747bad3b133ac8921b19b18
parentefed2eeafd7f80f012fffbb18c05079db2bdbbd7 (diff)
downloadnovnc-0442e153a1cad88e823926e596bcb3cff0aacabe.tar.gz
Fix RFB.js JSHint Errors
This fixes a couple of JSHint errors in RFB.js caused by using `==` instead of `===`.
-rw-r--r--include/rfb.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rfb.js b/include/rfb.js
index a591ca2..4e8f408 100644
--- a/include/rfb.js
+++ b/include/rfb.js
@@ -1903,9 +1903,9 @@ var RFB;
this._sock.rQskipBytes(1); // number-of-screens
this._sock.rQskipBytes(3); // padding
- for (var i=0; i<number_of_screens; i += 1) {
+ for (var i = 0; i < number_of_screens; i += 1) {
// Save the id and flags of the first screen
- if (i == 0) {
+ if (i === 0) {
this._screen_id = this._sock.rQshiftBytes(4); // id
this._sock.rQskipBytes(2); // x-position
this._sock.rQskipBytes(2); // y-position
@@ -1926,7 +1926,7 @@ var RFB;
*/
// We need to handle errors when we requested the resize.
- if (this._FBU.x == 1 && this._FBU.y != 0) {
+ if (this._FBU.x === 1 && this._FBU.y !== 0) {
var msg = "";
// The y-position indicates the status code from the server
switch (this._FBU.y) {