fixup! Fix: err -> e

This commit is contained in:
eight 2017-09-12 20:48:03 +08:00
parent 6b1d6564fb
commit 23bd3e2cc7
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ function dirtyReporter() {
try { try {
cb(); cb();
} catch (e) { } catch (e) {
console.error(err); console.error(e);
} }
} }
} }

View File

@ -155,8 +155,8 @@ var usercss = (function () {
const match = matchString(source); const match = matchString(source);
try { try {
result.select = JSON.parse(match.follow); result.select = JSON.parse(match.follow);
} catch (err) { } catch (e) {
throw new Error(chrome.i18n.getMessage('styleMetaErrorSelect', err.message)); throw new Error(chrome.i18n.getMessage('styleMetaErrorSelect', e.message));
} }
source = match.value; source = match.value;
} }
@ -295,7 +295,7 @@ var usercss = (function () {
style.vars[key].value = old.vars[key].value; style.vars[key].value = old.vars[key].value;
try { try {
validVar(style.vars[key], 'value'); validVar(style.vars[key], 'value');
} catch (err) { } catch (e) {
style.vars[key].value = null; style.vars[key].value = null;
} }
} }