Skip to content

Commit

Permalink
Fixes for linux webview stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cesaref committed Oct 11, 2024
1 parent 2573b63 commit 6b717f5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions gui/choc_WebView.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ struct choc::ui::WebView::Pimpl
{
webkit_settings_set_enable_write_console_messages_to_stdout (settings, true);
webkit_settings_set_enable_developer_extras (settings, true);

if (auto inspector = WEBKIT_WEB_INSPECTOR (webkit_web_view_get_inspector (WEBKIT_WEB_VIEW (webview))))
webkit_web_inspector_show (inspector);
}

if (! options.customUserAgent.empty())
Expand Down Expand Up @@ -391,11 +388,6 @@ struct choc::ui::WebView::Pimpl

g_free (json);
}
else
{
if (errorMessage.empty())
errorMessage = "Failed to convert result to JSON";
}

#if WEBKIT_CHECK_VERSION (2, 40, 0)
g_object_unref (js_value);
Expand Down

0 comments on commit 6b717f5

Please sign in to comment.