mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 07:22:28 +02:00
Merge launchFromSelfie
into launchToReadiness
This commit is contained in:
parent
43d8f52083
commit
c71b7c7a42
@ -215,8 +215,7 @@ const µBlock = { // jshint ignore:line
|
|||||||
readyToFilter: false,
|
readyToFilter: false,
|
||||||
|
|
||||||
supportStats: {
|
supportStats: {
|
||||||
launchToReadiness: 0,
|
launchToReadiness: '',
|
||||||
launchFromSelfie: false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
pageStores: new Map(),
|
pageStores: new Map(),
|
||||||
|
@ -429,7 +429,6 @@ let selfieIsValid = false;
|
|||||||
try {
|
try {
|
||||||
selfieIsValid = await µb.selfieManager.load();
|
selfieIsValid = await µb.selfieManager.load();
|
||||||
if ( selfieIsValid === true ) {
|
if ( selfieIsValid === true ) {
|
||||||
µb.supportStats.launchFromSelfie = true;
|
|
||||||
ubolog(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);
|
ubolog(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);
|
||||||
}
|
}
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
@ -507,7 +506,10 @@ browser.runtime.onUpdateAvailable.addListener(details => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
µb.supportStats.launchToReadiness = Date.now() - vAPI.T0;
|
µb.supportStats.launchToReadiness = `${Date.now() - vAPI.T0} ms`;
|
||||||
|
if ( selfieIsValid ) {
|
||||||
|
µb.supportStats.launchToReadiness += ' (selfie)';
|
||||||
|
}
|
||||||
ubolog(`All ready ${µb.supportStats.launchToReadiness} ms after launch`);
|
ubolog(`All ready ${µb.supportStats.launchToReadiness} ms after launch`);
|
||||||
|
|
||||||
// <<<<< end of private scope
|
// <<<<< end of private scope
|
||||||
|
Loading…
Reference in New Issue
Block a user