mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:05:53 +08:00
Set user agent to SLIC3R_APP_FULL_NAME
This commit is contained in:
parent
f83213d958
commit
32d2115334
@ -22,6 +22,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, const wxString& url)
|
||||
wxString correct_url = url.empty() ? wxString("") : wxURI(url).BuildURI();
|
||||
|
||||
#ifdef __WIN32_
|
||||
webView->SetUserAgent(SLIC3R_APP_FULL_NAME);
|
||||
webView->Create(parent, wxID_ANY, correct_url, wxDefaultPosition, wxDefaultSize);
|
||||
//We register the wxfs:// protocol for testing purposes
|
||||
//webView->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewArchiveHandler("wxfs")));
|
||||
@ -33,6 +34,7 @@ wxWebView* WebView::CreateWebView(wxWindow * parent, const wxString& url)
|
||||
// And the memory: file system
|
||||
//webView->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
|
||||
webView->Create(parent, wxID_ANY, correct_url, wxDefaultPosition, wxDefaultSize);
|
||||
webView->SetUserAgent(wxString::FromUTF8(SLIC3R_APP_FULL_NAME));
|
||||
#endif
|
||||
#ifndef __WIN32__
|
||||
Slic3r::GUI::wxGetApp().CallAfter([webView] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user