From 71a1c5e18a9d2f02bfa5735a17e56477affff5eb Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 1 Nov 2017 10:47:15 +0800 Subject: [PATCH] Fix: old -> oldStyle --- js/usercss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/usercss.js b/js/usercss.js index b05c83d5..5980c835 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -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) {