Skip to content

Commit

Permalink
Fix: various
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Oct 13, 2018
1 parent 7e0edde commit a4fc3e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions background/background.js
@@ -1,4 +1,4 @@
/* global detectSloppyRegexps download prefs openURL FIREFOX CHROME VIVALDI
/* global download prefs openURL FIREFOX CHROME VIVALDI
openEditor debounce URLS ignoreChromeError queryTabs getTab
styleManager msg navigatorUtil iconUtil workerUtil */
'use strict';
Expand Down Expand Up @@ -34,7 +34,6 @@ window.API_METHODS = Object.assign(window.API_METHODS || {}, {
},
getPrefs: prefs.getAll,

detectSloppyRegexps,
openEditor,

updateIconBadge(count) {
Expand Down
6 changes: 0 additions & 6 deletions background/style-manager.js
Expand Up @@ -358,12 +358,6 @@ const styleManager = (() => {
.map(i => styles.get(i))
);
}
// if (filter && filter.id) {
// if (!cache.sections[filter.id]) {
// return {};
// }
// return {[filter.id]: cache.sections[filter.id]};
// }
if (filter) {
const sections = !filter.id ? Object.values(cache.sections) :
cache.sections[filter.id] ? [cache.sections[filter.id]] :
Expand Down
2 changes: 1 addition & 1 deletion edit/regexp-tester.js
Expand Up @@ -58,7 +58,7 @@ const regExpTester = (() => {
const rxData = Object.assign({text}, cachedRegexps.get(text));
if (!rxData.urls) {
cachedRegexps.set(text, Object.assign(rxData, {
// imitate buggy Stylish-for-chrome, see detectSloppyRegexps()
// imitate buggy Stylish-for-chrome
rx: tryRegExp('^' + text + '$'),
urls: new Map(),
}));
Expand Down

0 comments on commit a4fc3e9

Please sign in to comment.