Minor code review

Related commit:
- 6df32675b1
This commit is contained in:
Raymond Hill 2020-12-12 14:38:44 -05:00
parent b779f1f7c9
commit 18e6f30c1c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 3 deletions

View File

@ -358,7 +358,7 @@ const onBeforeBehindTheSceneRequest = function(fctxt) {
// way to know for sure which exact page triggered a tabless network
// request.
onBeforeBehindTheSceneRequest.journalAddRequest = (( ) => {
{
let hostname = '';
let pageStores = new Set();
let pageStoresToken = 0;
@ -376,7 +376,7 @@ onBeforeBehindTheSceneRequest.journalAddRequest = (( ) => {
gcTimer = vAPI.setTimeout(gc, 30011);
};
return function(fctxt, result) {
onBeforeBehindTheSceneRequest.journalAddRequest = (fctxt, result) => {
const { docHostname } = fctxt;
if (
docHostname !== hostname ||
@ -398,7 +398,7 @@ onBeforeBehindTheSceneRequest.journalAddRequest = (( ) => {
pageStore.journalAddRequest(fctxt.hostname, result);
}
};
})();
}
/******************************************************************************/