thooking onloadfunctions should be done by script.js. - surf - customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 04173f6661ab8a84df36e081c58402ac8ec5b902
(DIR) parent d3d32fd6c754c9e4528471efe10706638a1192dd
(HTM) Author: Enno Boland (tox) <tox@s01.de>
Date: Wed, 7 Oct 2009 15:00:20 +0200
hooking onloadfunctions should be done by script.js.
Diffstat:
M surf.c | 3 ---
1 file changed, 0 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/surf.c b/surf.c
t@@ -699,9 +699,6 @@ 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)) {
- script = g_strdup_printf("window.addEventListener"
- "('DOMContentLoaded', function () { %s }, true);",
- script);
jsscript = JSStringCreateWithUTF8CString (script);
JSEvaluateScript (js, jsscript, JSContextGetGlobalObject(js), NULL, 0, &exception);
}