Skip to content

Commit c473f26

Browse files
authored
Merge pull request #323 from HRanjan-11/CYP-974
removed reject
2 parents 1809e67 + a8870da commit c473f26

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)