mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-05 16:37:09 +00:00
feat: show website button (#15)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user