Skip to content

Commit

Permalink
Adjust for web process extensions API renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mcatanzaro authored and aperezdc committed Mar 11, 2023
1 parent b6ba136 commit b351af5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion launcher/cog-launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,14 @@ cog_launcher_startup(GApplication *application)
g_signal_connect_swapped(self->shell, "create-view", G_CALLBACK(cog_launcher_create_view), self);
g_signal_connect(self->shell, "notify::web-view", G_CALLBACK(on_notify_web_view), self);

#if COG_USE_WPE2
if (s_options.web_extensions_dir)
webkit_web_context_set_web_process_extensions_directory(cog_shell_get_web_context(self->shell),
s_options.web_extensions_dir);
#else
if (s_options.web_extensions_dir)
webkit_web_context_set_web_extensions_directory(cog_shell_get_web_context(self->shell),
s_options.web_extensions_dir);
#if !COG_USE_WPE2
webkit_web_context_set_sandbox_enabled(cog_shell_get_web_context(self->shell), s_options.enable_sandbox);
#endif

Expand Down

0 comments on commit b351af5

Please sign in to comment.