Skip to content

Commit

Permalink
open dev tools automatically in revit
Browse files Browse the repository at this point in the history
  • Loading branch information
teocomi committed Apr 21, 2023
1 parent f36d72f commit a7be276
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ConnectorRevit/ConnectorRevit/WebUI/WebUIPanel.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class WebUIPanel : Page, Autodesk.Revit.UI.IDockablePaneProvider
{

#if DEBUG
public WebUIPanel(WebUIBindings webUIBindings, string address = "https://distracted-jones-770c28.netlify.app/")
public WebUIPanel(WebUIBindings webUIBindings, string address = "http://localhost:8080")
#else
public WebUIPanel(WebUIBindings webUIBindings, string address = "https://dashing-haupia-e8f6e3.netlify.app/")
#endif
Expand All @@ -26,7 +26,7 @@ public WebUIPanel(WebUIBindings webUIBindings, string address = "https://dashing

#if (REVIT2022)
// old method
CefSharpSettings.LegacyJavascriptBindingEnabled = true;
//CefSharpSettings.LegacyJavascriptBindingEnabled = true;
Browser.RegisterAsyncJsObject("UiBindings", webUIBindings, options: BindingOptions.DefaultBinder);


Expand All @@ -41,9 +41,7 @@ public WebUIPanel(WebUIBindings webUIBindings, string address = "https://dashing

private void Browser_FrameLoadEnd(object sender, FrameLoadEndEventArgs e)
{
#if DEBUG
Browser.ShowDevTools();
#endif
}


Expand Down

0 comments on commit a7be276

Please sign in to comment.