CodeSeven / toastr

Simple javascript toast notifications
http://www.toastrjs.com
MIT License
11.96k stars 2.04k forks source link

click_action does not fire #601

Open coda-apps opened 5 years ago

coda-apps commented 5 years ago

Hi.

I have seen that when a notification includes a "click_action" parameter (coming from FCM), it does not actually work when one clicks on the toastr element - but rather the element just disappears, as though there is no click link. This does however seem to work in a mobile-based notification (Android), but not in web (firefox, chrome).

I didnt seem to have any change whether including this line or removing it all together from the options: "onclick": null, Is there anything that needs to be done to allow this to work?

Thanks