From 23bd3e2cc795de339cac0ba94e28a9347598cda3 Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 12 Sep 2017 20:48:03 +0800 Subject: [PATCH] fixup! Fix: err -> e --- edit/util.js | 2 +- js/usercss.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/edit/util.js b/edit/util.js index e9019330..a04281ae 100644 --- a/edit/util.js +++ b/edit/util.js @@ -70,7 +70,7 @@ function dirtyReporter() { try { cb(); } catch (e) { - console.error(err); + console.error(e); } } } diff --git a/js/usercss.js b/js/usercss.js index cbbab840..c37ed4f5 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -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; } }