Skip to content

Commit

Permalink
chore(page): fix extra reload on each run
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Jul 27, 2023
1 parent 173ba21 commit 1779f1e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@a11ywatch/pagemind",
"version": "0.9.36",
"version": "0.9.39",
"description": "Get metrics on your web page with inclusion",
"main": "./server.js",
"author": "Jeff Mendez",
Expand All @@ -26,14 +26,14 @@
"dependencies": {
"@a11ywatch/protos": "^0.4.7",
"@a11ywatch/website-source-builder": "^0.1.8",
"@grpc/grpc-js": "1.8.18",
"@grpc/grpc-js": "1.8.20",
"@grpc/proto-loader": "0.7.8",
"fastq": "1.15.0",
"get-page-speed": "1.0.1",
"kayle": "^0.4.75",
"kayle": "0.4.77",
"lighthouse": "9.6.8",
"pb-util": "1.0.3",
"playwright": "^1.36.1"
"playwright": "^1.36.2"
},
"devDependencies": {
"@swc/core": "^1.3.19",
Expand Down
4 changes: 2 additions & 2 deletions src/core/lib/puppet/page/page-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const AI_DISABLED = process.env.AI_DISABLED === "true";

export const getPageMeta = async ({ report, page, cv }): Promise<void> => {
const pageIssues = (report && report?.issues) || [];
const automateable = (report && report?.automateable?.missingAltIndexs) || [];
const automateable = report && report?.automateable?.missingAltIndexs;

if (pageIssues?.length && !AI_DISABLED) {
if (automateable && automateable?.length && !AI_DISABLED) {
try {
await page.unroute("**/*", networkBlock);
await page.route("**/*", performNetworkBlock);
Expand Down

0 comments on commit 1779f1e

Please sign in to comment.