General developer forum

JS notification removal

JS notification removal
Core developersPlugin developersTestersTranslators

Here at row 111 is defined ).catch(

But it throws JS error - "Uncaught TypeError:[0].then(...).then(...).catch is not a function"

Checked the overall Moodle code and catch is not actually used anywhere. Instead ).fail( is used in many places. I replaced catch with fail and JS error is gone.

Just a quick note. Hope this helps.

Average of ratings: -
Gareth J Barnard
Re: JS notification removal
Core developersParticularly helpful MoodlersPlugin developers

Perhaps raise a Moodle Tracker issue on this?

Average of ratings: -