private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) { if (e.Frame.IsMain && NotificationJS != null && browser.Address != "about:blank") { e.Frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Environment.Notification)); ScriptLoader.ExecuteScript(e.Frame, NotificationJS, NotificationScriptIdentifier); plugins.ExecutePlugins(e.Frame, PluginEnvironment.Notification); } }
private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) { IFrame frame = e.Frame; if (frame.IsMain && browser.Address != "about:blank") { frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Environment.Notification)); ScriptLoader.ExecuteFile(frame, "notification.js", this); } }
private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e) { if (e.Frame.IsMain && notificationJS != null && browser.Address != "about:blank" && !flags.HasFlag(NotificationFlags.DisableScripts)) { e.Frame.ExecuteJavaScriptAsync(PropertyBridge.GenerateScript(PropertyBridge.Properties.ExpandLinksOnHover)); ScriptLoader.ExecuteScript(e.Frame, notificationJS, NotificationScriptIdentifier); if (plugins != null && plugins.HasAnyPlugin(PluginEnvironment.Notification)) { ScriptLoader.ExecuteScript(e.Frame, pluginJS, PluginScriptIdentifier); ScriptLoader.ExecuteFile(e.Frame, PluginManager.PluginGlobalScriptFile); plugins.ExecutePlugins(e.Frame, PluginEnvironment.Notification, false); } } }
public void UpdateProperties(PropertyBridge.Properties properties) { browser.ExecuteScriptAsync(PropertyBridge.GenerateScript(properties)); }