Support passing FA icon in message URL payload

This commit is contained in:
Tom Pansino
2021-05-15 02:20:51 -07:00
parent 996011956b
commit 742ae4eb52

View File

@@ -54,7 +54,7 @@ export default {
// keep the original config value if no value is provided by the endpoint
const message = this.message;
for (const prop of ["title", "style", "content"]) {
for (const prop of ["title", "style", "content", "icon"]) {
if (prop in fetchedMessage && fetchedMessage[prop] !== null) {
message[prop] = fetchedMessage[prop];
}