From 14be33ebcbd1f0aa5ccd425655dc1d4d87899358 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 10 Jan 2014 09:30:25 +0100 Subject: [PATCH] Fixed none available hinting if vimb is started without JavaScript (#61). --- src/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.c b/src/main.c index 8bf40cd..b0f029d 100644 --- a/src/main.c +++ b/src/main.c @@ -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(); -- 2.20.1