Skip to content

Commit

Permalink
Revert "Set HTTP User Agent in Web chart and OAuth dialog"
Browse files Browse the repository at this point in the history
This reverts commit 46be903.
Fixes #4123
  • Loading branch information
amtriathlon committed Jan 5, 2022
1 parent beed0b2 commit f4630ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Cloud/OAuthDialog.cpp
Expand Up @@ -79,7 +79,6 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site, CloudService *service
view = new QWebEngineView();
view->setZoomFactor(dpiXFactor);
view->page()->profile()->cookieStore()->deleteAllCookies();
view->page()->profile()->setHttpUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393");

view->setContentsMargins(0,0,0,0);
view->page()->view()->setContentsMargins(0,0,0,0);
Expand Down
2 changes: 1 addition & 1 deletion src/Train/WebPageWindow.cpp
Expand Up @@ -137,7 +137,7 @@ WebPageWindow::WebPageWindow(Context *context) : GcChartWindow(context), context
view = new QWebEngineView(this);
connect(view, SIGNAL(loadFinished(bool)), this, SLOT(loadFinished(bool)));

view->page()->profile()->setHttpUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393");
//view->page()->profile()->setHttpUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393");

// add a download interceptor
WebDownloadInterceptor *interceptor = new WebDownloadInterceptor;
Expand Down

0 comments on commit f4630ea

Please sign in to comment.