Read the statement by Michael Teeuw here.
How to send notification with MMM-EasyPix
-
How can I send notifications with the MMM-EasyPix module?
I triedimage.onerror = this.sendNotification('Pic is not exisiting');but nothing happened.
If I doimage.onerror = console.log('Pic is not exisiting');it logs ‘Pic is not existing’ in the console.
Any Ideas?
-
@Sven1894 where are u trying to send the notification?
this only works in the modulename.js
not in the node_helper -
@sdetweil In the MMM-EasyPix.js
-
@Sven1894 what module are u sending it to?
and you know what ‘this.’ means.
sometimes you have to take special care.have you debugged w the developer window ?
ctrl-shift-i, select the sources tab, find the module source, click
put a stop on the line where it is about to send and examine the ‘this.’ pointerif it’s in a callback it might be pointing to somewhere unexpected
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login