Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

refactor: remove unused BRIDGE_NO_DASHBOARD environment variable

Mario54ad6e3b41ec
diff --git a/internal/dashboard/dashboard/profiles.js b/internal/dashboard/dashboard/profiles.js
index ddc1c382..e3c662a0 100644
--- a/internal/dashboard/dashboard/profiles.js
+++ b/internal/dashboard/dashboard/profiles.js
@@ -254,7 +254,7 @@ function updateLaunchCommand() {
+ 'BRIDGE_PORT=' + shellQuote(port || '9868') + ' '
+ 'BRIDGE_PROFILE=' + shellQuote(profilePath) + ' '
+ 'BRIDGE_STATE_DIR=' + shellQuote(statePath) + ' '
- + 'BRIDGE_HEADLESS=' + (headless ? 'true' : 'false') + ' BRIDGE_NO_RESTORE=true BRIDGE_NO_DASHBOARD=true '
+ + 'BRIDGE_HEADLESS=' + (headless ? 'true' : 'false') + ' BRIDGE_NO_RESTORE=true '
+ './bin/pinchtab';
document.getElementById('launch-command').value = prefix + cmd;
}
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index e24460b3..bc26c397 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -2,7 +2,6 @@ package handlers
import (
"net/http"
- "os"
"github.com/pinchtab/pinchtab/internal/assets"
"github.com/pinchtab/pinchtab/internal/bridge"
@@ -61,7 +60,7 @@ func (h *Handlers) RegisterRoutes(mux *http.ServeMux, doShutdown func()) {
if h.Dashboard != nil {
h.Dashboard.RegisterHandlers(mux)
}
- if h.Orchestrator != nil && os.Getenv("BRIDGE_NO_DASHBOARD") == "" {
+ if h.Orchestrator != nil {
h.Orchestrator.RegisterHandlers(mux)
}
diff --git a/internal/orchestrator/orchestrator.go b/internal/orchestrator/orchestrator.go
index b47ad0ad..40f46fb4 100644
--- a/internal/orchestrator/orchestrator.go
+++ b/internal/orchestrator/orchestrator.go
@@ -134,12 +134,11 @@ func (o *Orchestrator) Launch(name, port string, headless bool) (*bridge.Instanc
}
env := mergeEnvWithOverrides(os.Environ(), map[string]string{
- "BRIDGE_PORT": port,
- "BRIDGE_PROFILE": profilePath,
- "BRIDGE_STATE_DIR": instanceStateDir,
- "BRIDGE_HEADLESS": headlessStr,
- "BRIDGE_NO_RESTORE": "true",
- "BRIDGE_NO_DASHBOARD": "true",
+ "BRIDGE_PORT": port,
+ "BRIDGE_PROFILE": profilePath,
+ "BRIDGE_STATE_DIR": instanceStateDir,
+ "BRIDGE_HEADLESS": headlessStr,
+ "BRIDGE_NO_RESTORE": "true",
})
logBuf := newRingBuffer(64 * 1024)