Skip to content

Commit aaecb28

Browse files
Update user agent
1 parent 60fe169 commit aaecb28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main( int, char** argv )
3030
appWin.windowClosed = []() { choc::messageloop::stop(); };
3131

3232
choc::ui::WebView::Options webViewOptions;
33-
webViewOptions.customUserAgent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15";
33+
webViewOptions.customUserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.7123.45 Safari/537.36";
3434
choc::ui::WebView webView( webViewOptions );
3535
webView.navigate( "https://www.icloud" + tld + "/" + std::string( argv[1] ) );
3636

@@ -45,7 +45,7 @@ int main( int, char** argv )
4545
appWin2.setWindowTitle( "iCloud " + std::string( argv[2] ) + "" );
4646

4747
choc::ui::WebView::Options webView2Options;
48-
webView2Options.customUserAgent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15";
48+
webView2Options.customUserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.7123.45 Safari/537.36";
4949
choc::ui::WebView webView2( webView2Options );
5050
webView2.navigate( url );
5151

0 commit comments

Comments
 (0)