bump to v0.4.2

This commit is contained in:
kulikov0 committed 2026-09-16 17:04:14 +02:00
1 parent 1cf840756a
commit 799146771a
14 files changed
+17 -20

No files matched your search

+1 -4
View File
@@ -6,8 +6,6 @@ import (
"fmt"
"math/rand/v2"
"strings"
"github.com/kulikov0/headless-client"
)
type DeviceProfile struct {
@@ -185,8 +183,7 @@ func chromeVersionFromUserAgent(userAgent string) string {
return version
}
func ChromeWindowsDeviceProfile() DeviceProfile {
userAgent := headless.ChromeWindows.UserAgent()
func ChromeWindowsDeviceProfile(userAgent string) DeviceProfile {
screen := commonScreens[rand.IntN(len(commonScreens))]
return DeviceProfile{
UserAgent: userAgent,