Fix: don't assign undefined to style object (#764)
This commit is contained in:
parent
34dfd83056
commit
450984abf3
|
@ -43,8 +43,10 @@ const usercss = (() => {
|
|||
style.usercssData = metadata;
|
||||
// https://github.com/openstyles/stylus/issues/560#issuecomment-440561196
|
||||
for (const [key, value] of Object.entries(GLOBAL_METAS)) {
|
||||
if (metadata[key] !== undefined) {
|
||||
style[value || key] = metadata[key];
|
||||
}
|
||||
}
|
||||
return style;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user