diff --git a/include/rfb.js b/include/rfb.js
index 766f6eb9d5aeee5bac69705b2a27b28178490aaa..5c8e2d1e107d0da42fcd9a6c820a8f2855496f6d 100644
--- a/include/rfb.js
+++ b/include/rfb.js
@@ -453,7 +453,7 @@ function decode_message(data) {
 
 function handle_message() {
     //Util.Debug("RQ.slice(0,20): " + RQ.slice(0,20) + " (" + RQ.length + ")");
-    if (RQ.length == 0) {
+    if (RQ.length === 0) {
         Util.Warn("handle_message called on empty receive queue");
         return;
     }