03/04/2019 - Production BUG - JS Exception

edited April 2019 in userstyles.org [?]


The following exception has been observed when installing a new theme with the Stylish - Custom themes for any website
2.0.9 for Chrome Version 73.0.3683.86 (Official Build) (64-bit) on Windows 10 Version 10.0.17763 Build 17763.

The exception prevents users from installing any css theme.

The exception is the following:

Uncaught TypeError: Cannot read property 'value' of null
at o (app.js:1)
at t.stylishInstall (app.js:1)
at t.value (app.js:1)
at Object. (app.js:1)
at app.js:1
at app.js:1
at a (app.js:1)
at u (app.js:1)
at f (app.js:1)
at l (app.js:1)

It can be quicky fixed with some jQuery:

$("body").append($("<div id='stylish-code'></div>"))

This is because the code doesn't null check on a dom element searched with getElementById. The dom element the code is looking for has an id = "stylish-code".


Sign In or Register to comment.