UNSOLVED How to send notification with MMM-EasyPix
How can I send notifications with the MMM-EasyPix module?
image.onerror = this.sendNotification('Pic is not exisiting');
but nothing happened.
If I do
image.onerror = console.log('Pic is not exisiting');
it logs ‘Pic is not existing’ in the console.
@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.’ pointer
if it’s in a callback it might be pointing to somewhere unexpected