Merge pull request #219 from tpansino/support-message-icon-url

Support passing FA icon in message URL payload
This commit is contained in:
Bastien Wirtz
2021-07-14 01:55:59 -07:00
committed by GitHub

View File

@ -54,7 +54,7 @@ export default {
// keep the original config value if no value is provided by the endpoint // keep the original config value if no value is provided by the endpoint
const message = this.message; 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) { if (prop in fetchedMessage && fetchedMessage[prop] !== null) {
message[prop] = fetchedMessage[prop]; message[prop] = fetchedMessage[prop];
} }