Implement script message for WKWebView backend

This commit is contained in:
Tobias Taschner
2021-02-15 18:13:57 +01:00
parent edcaf5210e
commit a7ff7a8012
4 changed files with 57 additions and 0 deletions

View File

@@ -398,6 +398,7 @@ WebFrame::WebFrame(const wxString& url) :
m_browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewFSHandler("memory")));
#endif
m_browser->Create(this, wxID_ANY, url, wxDefaultPosition, wxDefaultSize);
m_browser->AddScriptMessageHandler("wx");
topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1));
#ifndef __WXMAC__