mirror of
https://github.com/ONLYOFFICE/desktop-sdk.git
synced 2026-03-31 10:23:12 +08:00
Embed Native object only to main frame
This commit is contained in:
@ -418,6 +418,9 @@ class ClientRenderDelegate : public client::ClientAppRenderer::Delegate {
|
||||
|
||||
message_router_->OnContextCreated(browser, frame, context);
|
||||
|
||||
if (!frame->IsMain())
|
||||
return;
|
||||
|
||||
// add AscEditorNative
|
||||
CefRefPtr<CefV8Value> object = context->GetGlobal();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user