summaryrefslogtreecommitdiff
path: root/src/ext-proxy.c
diff options
context:
space:
mode:
authorRobert Timm <mail@rtti.de>2017-05-12 23:32:15 +0200
committerDaniel Carl <danielcarl@gmx.de>2017-05-13 01:01:13 +0200
commitaedd02c495065995a9f1ed9f0194fc562333812c (patch)
tree3d074a132c2cd8c6b0dc442b3b317ee03609521d /src/ext-proxy.c
parentad3bc486e63472f1472f6e049edf1bad472f3fb5 (diff)
fixes :eval segfault (closes #397)
Diffstat (limited to 'src/ext-proxy.c')
-rw-r--r--src/ext-proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext-proxy.c b/src/ext-proxy.c
index 4cdcaf7..f1e42e5 100644
--- a/src/ext-proxy.c
+++ b/src/ext-proxy.c
@@ -196,7 +196,7 @@ static void on_vertical_scroll(GDBusConnection *connection,
void ext_proxy_eval_script(Client *c, char *js, GAsyncReadyCallback callback)
{
if (callback) {
- dbus_call(c, "EvalJs", g_variant_new("(ts)", js, c->page_id), callback);
+ dbus_call(c, "EvalJs", g_variant_new("(ts)", c->page_id, js), callback);
} else {
dbus_call(c, "EvalJsNoResult", g_variant_new("(ts)", c->page_id, js), NULL);
}