SO-Close-Vote-Reviewers / UserScripts

Various user scripts that add features to the review queue or to the chat room
Other
56 stars 41 forks source link

Fix exception: observe argument not object #211

Closed stephenostermiller closed 1 year ago

stephenostermiller commented 2 years ago

This user script always creates an exception on page load without this check

makyen commented 1 year ago

Thank you for submitting this. While this would have masked the error, I felt it was better to adjust the selector which being used to select the element. While masking the error might be a reasonable choice in order to not fail with future changes by SE, I'd rather that an error be produced in order to let us know that something isn't working. It would probably be reasonable to have a return as you've used here if it was in conjunction with still reporting the error.