Skip to content

Commit 6d16035

Browse files
committed
Don't start warning server for global browser intercept til we need it
Not a big issue, but needlessly listens on a port and slows us down.
1 parent 5d65ee0 commit 6d16035

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interceptors/chromium-based-interceptors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
260260
} = { closeConfirmed: false }) {
261261
if (!this.isActivable()) return;
262262

263-
const hideWarningServer = new HideWarningServer(this.config);
264-
await hideWarningServer.start('https://amiusing.httptoolkit.tech');
265-
266263
const existingPid = await this.findExistingPid();
267264
if (existingPid) {
268265
if (!options.closeConfirmed) {
@@ -289,6 +286,9 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
289286
}
290287
}
291288

289+
const hideWarningServer = new HideWarningServer(this.config);
290+
await hideWarningServer.start('https://amiusing.httptoolkit.tech');
291+
292292
const browserDetails = await getBrowserDetails(this.config.configPath, this.variantName);
293293
const launchOptions = await getChromiumLaunchOptions(
294294
browserDetails ? browserDetails.name : this.variantName,

0 commit comments

Comments
 (0)