From d507d1415eff9fce16fb67963f34a1aa1ecb1fe4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 25 Dec 2019 12:10:21 +0100 Subject: [PATCH] Make sure "undefined" can be a default parameter value Lower layers can consider null to be a valid value, when we'd rather they treat the value as not set. --- vnc_lite.html | 1 - 1 file changed, 1 deletion(-) diff --git a/vnc_lite.html b/vnc_lite.html index 98dd28f2..595f34c5 100644 --- a/vnc_lite.html +++ b/vnc_lite.html @@ -123,7 +123,6 @@ // because Firefox < 53 has a bug w.r.t location.search const re = new RegExp('.*[?&]' + name + '=([^&#]*)'), match = document.location.href.match(re); - if (typeof defaultValue === 'undefined') { defaultValue = null; } if (match) { // We have to decode the URL since want the cleartext value