X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=surf.c;h=28b6966bf52fd3e74fdd2fac0f0f6054df39060d;hb=92cb8792e17e7f0c61131da3be1bddda5375bc47;hp=3c2f572cc581ff2275c789b4f498e686965fdd20;hpb=04173f6661ab8a84df36e081c58402ac8ec5b902;p=surf.git diff --git a/surf.c b/surf.c index 3c2f572..28b6966 100644 --- a/surf.c +++ b/surf.c @@ -699,7 +699,7 @@ windowobjectcleared(GtkWidget *w, WebKitWebFrame *frame, JSContextRef js, JSObje filename = g_build_filename(workdir, "script.js", NULL); if(g_file_get_contents(filename, &script, NULL, &error)) { - jsscript = JSStringCreateWithUTF8CString (script); + jsscript = JSStringCreateWithUTF8CString(script); JSEvaluateScript (js, jsscript, JSContextGetGlobalObject(js), NULL, 0, &exception); } }