Fixed Porn Doe's poster query. Checking style attribute existence in qu before attempting to use it.
This commit is contained in:
@@ -141,7 +141,7 @@ function removeStyleFunctionSpaces(el) {
|
||||
function style(context, selector, styleAttr) {
|
||||
const el = q(context, selector);
|
||||
|
||||
if (el) {
|
||||
if (el?.hasAttribute('style')) {
|
||||
removeStyleFunctionSpaces(el);
|
||||
|
||||
return styleAttr ? el.style[styleAttr] : el.style;
|
||||
|
||||
Reference in New Issue
Block a user