User talk:Anomie/useridentifier.js
Latest comment: 1 year ago by Anomie in topic A bug in this code
A bug in this code edit
Hi User:Anomie !
I was looking through our JavaScript error logs and there is a bug in this code. The script seems to be used by at least 3 people but is occurring often enough that it could be considered a privacy issue (it errors on ever page view so acts as a record of browsing history). It seems to mostly be occuring on the mobile contributions page https://en.m.wikipedia.org/wiki/Special:Contributions. Looks simple enough to fix.
The error is: TypeError: Cannot read properties of null (reading 'match')
stack trace is :
at HTMLDocument.onLoad https://en.m.wikipedia.org/w/index.php?title=User:Anomie/useridentifier.js&action=raw&ctype=text/javascript:196:17 at mightThrow https://en.m.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=minerva&version=szq54:49:881 at process https://en.m.wikipedia.org/w/load.php?lang=en&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=minerva&version=szq54:50:54 |
Thanks in advance and let me know if you need any further information!