Exemplo n.º 1
0
        protected override void OnLoadEnd(CefBrowser browser, CefFrame frame, int httpStatusCode)
        {
            var e = new LoadEndEventArgs(frame, httpStatusCode);

            _owner.InvokeIfRequired(() => _owner.OnLoadEnd(e));

            if (frame.IsMain && httpStatusCode == 200)
            {
                frame.ExecuteJavaScript($"{JavaScript.JavaScriptCommunicationBridge.ROOT_OBJECT_KEY_TARGET}._setDomReady()", frame.Url, 0);
            }
        }