Commit 0442e153 authored by Solly Ross's avatar Solly Ross

Fix RFB.js JSHint Errors

This fixes a couple of JSHint errors in RFB.js caused
by using `==` instead of `===`.
parent efed2eea
...@@ -1903,9 +1903,9 @@ var RFB; ...@@ -1903,9 +1903,9 @@ var RFB;
this._sock.rQskipBytes(1); // number-of-screens this._sock.rQskipBytes(1); // number-of-screens
this._sock.rQskipBytes(3); // padding 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 // Save the id and flags of the first screen
if (i == 0) { if (i === 0) {
this._screen_id = this._sock.rQshiftBytes(4); // id this._screen_id = this._sock.rQshiftBytes(4); // id
this._sock.rQskipBytes(2); // x-position this._sock.rQskipBytes(2); // x-position
this._sock.rQskipBytes(2); // y-position this._sock.rQskipBytes(2); // y-position
...@@ -1926,7 +1926,7 @@ var RFB; ...@@ -1926,7 +1926,7 @@ var RFB;
*/ */
// We need to handle errors when we requested the resize. // 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 = ""; var msg = "";
// The y-position indicates the status code from the server // The y-position indicates the status code from the server
switch (this._FBU.y) { switch (this._FBU.y) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment