mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Still try to load filter lists after fatal error at launch
Related discussion: - https://github.com/uBlockOrigin/uBlock-issues/issues/817#issuecomment-565730122 In case of a fatal error at launch, the loading of filter lists could be skipped. With this commit uBO will still try to load the filter lists, at least the default ones if no valid selfie is present.
This commit is contained in:
parent
4e52efa9be
commit
1bb524d12b
@ -286,7 +286,14 @@ try {
|
||||
log.info(`PSL ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||
}),
|
||||
]);
|
||||
} catch (ex) {
|
||||
console.trace(ex);
|
||||
}
|
||||
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/817#issuecomment-565730122
|
||||
// Still try to load filter lists regardless of whether a serious error
|
||||
// occurred in the previous initialization steps.
|
||||
try {
|
||||
const selfieIsValid = await µb.selfieManager.load();
|
||||
if ( selfieIsValid === true ) {
|
||||
log.info(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||
|
Loading…
Reference in New Issue
Block a user