Fix: old -> oldStyle

This commit is contained in:
eight 2017-11-01 10:47:15 +08:00
parent f35fbb5b36
commit 71a1c5e18a

View File

@ -521,9 +521,9 @@ var usercss = (() => {
}
}
function assignVars(style, old) {
function assignVars(style, oldStyle) {
const {usercssData: {vars}} = style;
const {usercssData: {vars: oldVars}} = old;
const {usercssData: {vars: oldVars}} = oldStyle;
// The type of var might be changed during the update. Set value to null if the value is invalid.
for (const key of Object.keys(vars)) {
if (oldVars[key] && oldVars[key].value) {