From 9ce1dfb6ebf8ff40a9143854d89c0b1f0f3db833 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sun, 12 May 2024 19:20:28 +0800 Subject: [PATCH] use alternative ways to determine blank message parameter --- scripts/logging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/logging.js b/scripts/logging.js index 1b3b7ab..dd4d017 100644 --- a/scripts/logging.js +++ b/scripts/logging.js @@ -21,7 +21,7 @@ export default class logging { @param {bool} PRIORITY automatically dismiss other, older messages */ constructor(TITLE, MESSAGE, PRIORITY = true) { // Set this message's properties. - if (MESSAGE == null) { + if (!MESSAGE || (typeof MESSAGE).includes(`undef`)) { this.message = TITLE; } else { this.title = TITLE;