Tuesday, March 20, 2018

Notify jquery plugin working only one time on IE

Leave a Comment

I am using notify jquery plugin, it is working normally on all browsers, but on IE it is displayed only the first time and then it keeps giving me the below error

this is the plugin i am using http://notifyjs.com/ and i am calling it that way $.Notification.notify('error', 'left middle', 'Error', 'Please try again later !!');

enter image description here

1 Answers

Answers 1

I think you are using a older version of their code. If you look at the below blame

https://github.com/jpillora/notifyjs/blame/7191c17e26097b9617071c72f1a409f2dcbc68ea/dist/notify.js

Code blame

You can see the code has document.body.contains while your JS has document.contains. And it was changed 2 years ago for IE only. So you need to use the latest file from below

https://github.com/jpillora/notifyjs/blob/master/dist/notify.js

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment