diff options
author | Enno Boland (tox) <tox@s01.de> | 2009-10-07 15:00:20 +0200 |
---|---|---|
committer | Enno Boland (tox) <tox@s01.de> | 2009-10-07 15:00:20 +0200 |
commit | 04173f6661ab8a84df36e081c58402ac8ec5b902 (patch) | |
tree | 02f65b8b49087cf4874bd0a11c6e8404ba0e82db | |
parent | d3d32fd6c754c9e4528471efe10706638a1192dd (diff) | |
download | surf-04173f6661ab8a84df36e081c58402ac8ec5b902.tar.gz surf-04173f6661ab8a84df36e081c58402ac8ec5b902.tar.bz2 surf-04173f6661ab8a84df36e081c58402ac8ec5b902.zip |
hooking onloadfunctions should be done by script.js.
-rw-r--r-- | surf.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); } |