feat: show website button (#15)

This commit is contained in:
2026-01-18 18:00:19 +01:00
committed by GitHub
parent 83eaf34475
commit 54e10b98e2
2 changed files with 78 additions and 3 deletions
+8 -1
View File
@@ -20,7 +20,14 @@ func OpenBrowserWindow(url string, fullscreen bool, profile string) error {
return fmt.Errorf("failed to create local config directory: %w", err)
}
args := []string{fmt.Sprintf("--app=%s", url), "--autoplay-policy=no-user-gesture-required", fmt.Sprintf("--user-data-dir=%s", browserProfileDirPath)}
args := []string{
fmt.Sprintf("--app=%s", url),
"--autoplay-policy=no-user-gesture-required",
fmt.Sprintf("--user-data-dir=%s", browserProfileDirPath),
"--disable-web-security",
"--allow-running-insecure-content",
"--disable-features=XFrameOptions",
}
if fullscreen {
args = append(args, "--start-fullscreen")
}