Browse Source

code cleanup

sisyphus
Dustin Falgout 8 years ago
parent
commit
6362e4b4d4
  1. 6
      src/webkit2-extension.c

6
src/webkit2-extension.c

@ -1904,6 +1904,10 @@ page_created_cb(WebKitWebExtension *extension,
gboolean secure_mode;
GError *err = NULL;
// save the page_id (global variable)
page_id = webkit_web_page_get_id(web_page);
// Determine if secure_mode is enabled and connect callback to signal if so.
secure_mode = get_config_option_as_bool("greeter", "secure_mode", err);
if (FALSE == secure_mode && NULL == err) {
@ -1911,8 +1915,6 @@ page_created_cb(WebKitWebExtension *extension,
return;
}
page_id = webkit_web_page_get_id(web_page);
g_signal_connect(
web_page,
"send-request",

Loading…
Cancel
Save