Fixed none available hinting if vimb is started without JavaScript (#61).
authorDaniel Carl <danielcarl@gmx.de>
Fri, 10 Jan 2014 08:30:25 +0000 (09:30 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 10 Jan 2014 08:30:25 +0000 (09:30 +0100)
src/main.c

index 8bf40cd..b0f029d 100644 (file)
@@ -642,6 +642,13 @@ static void init_core(void)
     mode_add('i', input_enter, input_leave, input_keypress, NULL);
     mode_add('p', pass_enter, pass_leave, pass_keypress, NULL);
 
+    /* run windo object cleared here to inject the hinting and userscript on
+     * startup of vimb, else they are not loaded if JavaScript is disabled */
+    window_object_cleared_cb(
+        GTK_WIDGET(gui->webview),
+        webkit_web_view_get_main_frame(gui->webview), NULL, NULL, NULL
+    );
+
     init_files();
     session_init();
     setting_init();