fix hid terminal on windows
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user