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 {
cb();
} catch (e) {
console.error(err);
console.error(e);
}
}
}

View File

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