1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-16 23:42:39 +01:00

code review re. https://github.com/gorhill/uBlock/issues/134: no need to force a recompile of whole user filter list

This commit is contained in:
gorhill 2015-04-30 07:56:23 -04:00
parent 84f974766e
commit 803a0c54f5

View File

@ -159,7 +159,7 @@
var µb = this; var µb = this;
var onCompiledListLoaded = function() { var onSaved = function() {
var compiledFilters = µb.compileFilters(filters); var compiledFilters = µb.compileFilters(filters);
var snfe = µb.staticNetFilteringEngine; var snfe = µb.staticNetFilteringEngine;
var cfe = µb.cosmeticFilteringEngine; var cfe = µb.cosmeticFilteringEngine;
@ -176,13 +176,6 @@
µb.cosmeticFilteringEngine.freeze(); µb.cosmeticFilteringEngine.freeze();
}; };
var onSaved = function(details) {
if ( details.error ) {
return;
}
µb.getCompiledFilterList(µb.userFiltersPath, onCompiledListLoaded);
};
var onLoaded = function(details) { var onLoaded = function(details) {
if ( details.error ) { if ( details.error ) {
return; return;