Add a constructor to create a message.
This is similar to that run executed in .log().
This commit is contained in:
parent
571dc18f34
commit
dbb8b47b38
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue