changeset: 111:470adc5f2725
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Oct 07 15:00:20 2009 +0200
files: surf.c
description:
hooking onloadfunctions should be done by script.js.
diff -r ca6a33025ebd -r 470adc5f2725 surf.c
--- a/surf.c Mon Sep 21 19:28:39 2009 +0200
+++ b/surf.c Wed Oct 07 15:00:20 2009 +0200
@@ -699,9 +699,6 @@
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);
}
Received on Wed Oct 07 2009 - 12:58:17 UTC
This archive was generated by hypermail 2.2.0 : Wed Oct 07 2009 - 13:00:06 UTC