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
commit c4cae400d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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];
}