mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
parent
ea6326c860
commit
8dcda65837
|
@ -63,7 +63,7 @@ async function runAllTests() {
|
|||
try {
|
||||
protocol = await CDP({ port: chrome.port });
|
||||
} catch (e) {
|
||||
if (e === "No inspectable targets" && connectAttempts < 50) {
|
||||
if (e.message === "No inspectable targets" && connectAttempts < 50) {
|
||||
connectAttempts++;
|
||||
console.log(
|
||||
"Unable to establish connection to chrome target - trying again..."
|
||||
|
|
Loading…
Reference in New Issue
Block a user