lower timeout
This commit is contained in:
@@ -84,7 +84,7 @@ const NO_TABS_ERROR = `No browser tabs are connected. Please install and enable
|
|||||||
async function isPortTaken(port: number): Promise<boolean> {
|
async function isPortTaken(port: number): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`http://localhost:${port}/`, {
|
const response = await fetch(`http://localhost:${port}/`, {
|
||||||
signal: AbortSignal.timeout(500)
|
signal: AbortSignal.timeout(100)
|
||||||
})
|
})
|
||||||
return response.ok
|
return response.ok
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user