User talk:Enterprisey/cv-revdel.js
Appearance
TypeError: Cannot read properties of null (reading 'addEventListener')
[edit]hey User:Enterprisey looks like there is a bug in this code at https://en.m.wikipedia.org/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript:250:18 that's showing up in our error logs.
mw.util.addPortletLink can return null if it fails to add the element to the menu so I think you just need to add a catch for this (either returning early or adding to another menu). You should be able to replicate this on: https://en.m.wikipedia.org/w/index.php?title=Wikipedia_talk:Today%27s_featured_article/June_2023&action=history
Let me know if you have any questions. Jdlrobson (talk) 06:15, 1 June 2023 (UTC)