From 084b08e530c8c8836ca1b1133bcf09a84b45fb3b Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 9 Nov 2019 17:21:08 +0800 Subject: [PATCH] Fix: duplicate capitalize --- popup/popup.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/popup/popup.js b/popup/popup.js index 8655145e..2c5228b8 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -1,7 +1,7 @@ /* global configDialog hotkeys onTabReady msg getActiveTab FIREFOX getTabRealURL URLS API onDOMready $ $$ prefs CHROME setupLivePrefs template t $create tWordBreak animateElement - tryJSONparse debounce CHROME_HAS_BORDER_BUG */ + tryJSONparse debounce CHROME_HAS_BORDER_BUG capitalize */ 'use strict'; @@ -348,10 +348,6 @@ function createStyleElement(style) { return entry; } -function capitalize(s) { - return s[0].toUpperCase() + s.slice(1); -} - function styleExcluded({exclusions}, type) { if (!exclusions) { return false;