summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-12-25 12:10:21 +0100
committerPierre Ossman <ossman@cendio.se>2019-12-25 12:10:21 +0100
commitd507d1415eff9fce16fb67963f34a1aa1ecb1fe4 (patch)
treed79228f01f644d1081946ef9353d813626aa6b5a
parentc4eb4ddcfe284a84fe147544cddfce2962fd4a87 (diff)
downloadnovnc-d507d1415eff9fce16fb67963f34a1aa1ecb1fe4.tar.gz
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.
-rw-r--r--vnc_lite.html1
1 files changed, 0 insertions, 1 deletions
diff --git a/vnc_lite.html b/vnc_lite.html
index 98dd28f..595f34c 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