From 95f9f9c5d4e432df7a37e6624ce04007cbba58c1 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 5 Sep 2018 07:28:31 -0500 Subject: [PATCH] Rename to defaultValue --- js/usercss.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/usercss.js b/js/usercss.js index cd34f6ed..6fabf2a5 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -177,7 +177,7 @@ var usercss = (() => { result.label = state.value; const {re, type, text} = state; - let deflt; + let defaultValue; switch (type === 'image' && state.key === 'var' ? '@image@var' : type) { case 'checkbox': { @@ -199,7 +199,7 @@ var usercss = (() => { result.options = state.value.map(text => { if (text.endsWith('*')) { text = text.replace(/\*$/, ''); - deflt = text; + defaultValue = text; } return createOption(text); }); @@ -208,12 +208,12 @@ var usercss = (() => { if (k.endsWith('*')) { state.value[k] = state.value[k].replace(/\*$/, ''); k = k.replace(/\*$/, ''); - deflt = k; + defaultValue = k; } return createOption(k, state.value[k]); }); } - result.default = typeof deflt !== 'undefined' ? deflt : (result.options[0] || {}).name || ''; + result.default = typeof defaultValue !== 'undefined' ? defaultValue : (result.options[0] || {}).name || ''; break; }