fix hid terminal on windows

This commit is contained in:
Adrian Zürcher
2025-12-29 14:59:24 +01:00
parent ff460fffa1
commit 40f683a917
4 changed files with 19 additions and 28 deletions

View File

@@ -2,8 +2,9 @@
package converter
// hideConsole does nothing on non-Windows systems
func hideConsole() {
// macOS and Linux don't have the same "console window" concept
// that needs manual hiding at runtime like Windows.
import "github.com/chromedp/chromedp"
func platformOptions() chromedp.ExecAllocatorOption {
// Returns a no-op option for Mac/Linux
return chromedp.NoSandbox
}