Skip to content

Commit

Permalink
Fix for falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Orangemoon committed Sep 28, 2024
1 parent 4b82bc1 commit b659bc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/PenP/experi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6235,7 +6235,7 @@

//Ignore reductive values
if (!(id > 0 && id <= 3)) return def;
if (!value) return def;
if (typeof value == "undefined") return def;

//Parse it
let parsed = JSON.parse(def);
Expand Down
2 changes: 1 addition & 1 deletion extensions/PenP/v7.js
Original file line number Diff line number Diff line change
Expand Up @@ -6033,7 +6033,7 @@

//Ignore reductive values
if (!(id > 0 && id <= 3)) return def;
if (!value) return def;
if (typeof value == "undefined") return def;

//Parse it
let parsed = JSON.parse(def);
Expand Down

0 comments on commit b659bc9

Please sign in to comment.