pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3d32fd
)
hooking onloadfunctions should be done by script.js.
author
Enno Boland (tox)
<tox@s01.de>
Wed, 7 Oct 2009 13:00:20 +0000
(15:00 +0200)
committer
Enno Boland (tox)
<tox@s01.de>
Wed, 7 Oct 2009 13:00:20 +0000
(15:00 +0200)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
e40bfd0
..
3c2f572
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-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);
}