Skip to content

Commit 6f892ab

Browse files
committed
Added possibility to pass multiple URLs for multiple tabs
1 parent 2621dec commit 6f892ab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ build: init ## Build extended image with DevTools frontend
2222

2323
run: ## Run extended container with DevTools (interactive)
2424
@echo "🚀 Starting extended kernel-browser with DevTools..."
25-
./run-local.sh
25+
@if [ -n "$(URLS)" ]; then echo "📄 Opening URLs: $(URLS)"; fi
26+
URLS='$(URLS)' ./run-local.sh
2627

2728
compose-up: build ## Start with docker-compose (background)
2829
@echo "🚀 Starting with docker-compose..."

run-local.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ RUN_ARGS=(
9292
--mount type=bind,src="$FLAGS_FILE",dst=/chromium/flags,ro
9393
)
9494

95+
# Add URLS environment variable if provided
96+
if [[ -n "${URLS:-}" ]]; then
97+
echo " URLs: $URLS"
98+
RUN_ARGS+=( -e URLS="$URLS" )
99+
fi
100+
95101
# WebRTC port mapping
96102
if [[ "${ENABLE_WEBRTC:-}" == "true" ]]; then
97103
echo "Running container with WebRTC"

0 commit comments

Comments
 (0)