This commit is contained in:
yanlong.wang 2025-03-13 16:25:59 +08:00
parent ff7612414c
commit b9ad4facf5
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -487,7 +487,10 @@ class PageReqCtrlKit {
deferred?.resolve();
const now = Date.now();
this.lastResourceLoadedAt = now;
const typ = req.resourceType();
const typ = req?.resourceType();
if (!typ) {
return;
}
if (documentResourceTypes.has(typ)) {
this.lastContentResourceLoadedAt = now;
}