callumlocke/json-formatter

Failing with error "Cannot read properties of null"

lancekuttner opened this issue ยท 7 comments

I am running Chrome Version 100.0.4896.60 (Official Build) (64-bit)
I noticed that just a few hours ago the extension stopped working. The console shows the following error:

Error in event handler: TypeError: Cannot read properties of null (reading 'setAttribute')
at chrome-extension://bcjindcccaagfpapjjmafapmmgkkhgoa/js/content.js:77:64

I ran into the same issue.

This is due to #191 not checking if the "meta" "color-scheme" property is actually set or exists, which is not the case on many browsers, and trying to invoke setAttribute on it anyway.

image

VR6R commented

I had this issue as well on chrome version 100.0.4896, but just updated to 101.0.4951.67 and it is resolved.

I'm also encountering this issue with Microsoft Edge 100.0.1185.44 (Official build) (64-bit)

Me Too

Same issue here.

wommy commented

just submitted a PR #195

fixes it for me

Now fixed in v0.6.2