diff --git a/html5/index.html b/html5/index.html
index 1ad75971..a5912ef5 100644
--- a/html5/index.html
+++ b/html5/index.html
@@ -394,7 +394,7 @@
Xpra Bug Report
const default_settings = {};
const getparam = function (prop) {
let v = Utilities.getparam(prop);
- if (v == null && prop in default_settings) {
+ if (v == undefined && prop in default_settings) {
v = default_settings[prop];
clog("using", prop, "=", v, " from default settings");
} else if (v != null && v != "") {
diff --git a/html5/js/Utilities.js b/html5/js/Utilities.js
index bd4215dd..6ea71d91 100644
--- a/html5/js/Utilities.js
+++ b/html5/js/Utilities.js
@@ -31,7 +31,7 @@ const Utilities = {
cdebug: console_debug_safe,
stristrue(v, default_value) {
- if (v === null) {
+ if (!v) {
return default_value;
}
return ["true", "on", "1", "yes", "enabled"].includes(