Add a constructor to create a message.

This is similar to that run executed in .log().
This commit is contained in:
buzz-lightsnack-2007 2024-04-09 09:32:53 +08:00
parent 571dc18f34
commit dbb8b47b38
2 changed files with 2 additions and 4 deletions

View file

@ -16,7 +16,7 @@ export default class alerts {
constructor(TITLE, MESSAGE) {
// Set this message's properties.
if (MESSAGE = null) {
if (MESSAGE == null) {
this.message = TITLE;
} else {
this.title = TITLE;