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;

View file

@ -89,9 +89,7 @@ export default class filters {
let filter_URL = filters.dequeue();
// Inform the user of download state.
alerts.log(
texts.localized(`settings_filters_update_status`, null, [filter_URL]),
);
new alerts (texts.localized(`settings_filters_update_status`, null, [filter_URL]));
// Create promise of downloading.
let filter_download = net.download(filter_URL, `JSON`, false, true);