Skip to content

Commit

Permalink
#292 getparam may return 'undefined' but not 'null' now
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 28, 2024
1 parent 68b6318 commit 0210e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ <h2>Xpra Bug Report</h2>
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 != "") {
Expand Down
2 changes: 1 addition & 1 deletion html5/js/Utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0210e5a

Please sign in to comment.