Skip to content

Commit a8870da

Browse files
committed
removed reject
1 parent cdf725b commit a8870da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accessibility/scanner/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const setScanConfig = (win, payload) =>
2828

2929

3030
setTimeout(() => {
31-
reject(new Error('automation-custom-event not received within timeout'));
31+
resolve(new Error('automation-custom-event not received within timeout'));
3232
}, 45000);
3333
}
3434
startScan();
@@ -56,7 +56,7 @@ const getScanData = (win, payload) =>
5656
win.document.dispatchEvent(e);
5757

5858
setTimeout(() => {
59-
reject(new Error('automation-custom-event not received within timeout'));
59+
resolve(new Error('automation-custom-event not received within timeout'));
6060
}, 45000);
6161

6262
}

0 commit comments

Comments
 (0)