Fix: buggy destructuring
This commit is contained in:
parent
12ec07d0a0
commit
fb046d44be
|
@ -232,6 +232,7 @@
|
|||
.then(init)
|
||||
.catch(err => {
|
||||
$('#header').classList.add('meta-init-error');
|
||||
console.error(err);
|
||||
showError(err);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -41,8 +41,9 @@ const usercss = (() => {
|
|||
})
|
||||
.then(({metadata}) => {
|
||||
style.usercssData = metadata;
|
||||
for (const [key, value = key] of Object.entries(GLOBAL_METAS)) {
|
||||
style[value] = metadata[key];
|
||||
// https://github.com/openstyles/stylus/issues/560#issuecomment-440561196
|
||||
for (const [key, value] of Object.entries(GLOBAL_METAS)) {
|
||||
style[value || key] = metadata[key];
|
||||
}
|
||||
return style;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user