summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webext-surf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/webext-surf.c b/webext-surf.c
index d087219..88d807c 100644
--- a/webext-surf.c
+++ b/webext-surf.c
@@ -72,7 +72,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
snprintf(js, sizeof(js),
"window.scrollBy(window.innerWidth/100*%d,0);",
msg[2]);
- jsc_context_evaluate(jsc, js, -1);
+ JSCValue *res = jsc_context_evaluate(jsc, js, -1);
break;
case 'v':
if (msgsz != 3)
@@ -80,7 +80,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
snprintf(js, sizeof(js),
"window.scrollBy(0,window.innerHeight/100*%d);",
msg[2]);
- jsc_context_evaluate(jsc, js, -1);
+ res = jsc_context_evaluate(jsc, js, -1);
break;
}
@@ -89,7 +89,7 @@ readsock(GIOChannel *s, GIOCondition c, gpointer unused)
G_MODULE_EXPORT void
webkit_web_extension_initialize_with_user_data(WebKitWebExtension *e,
- const GVariant *gv)
+ GVariant *gv)
{
GIOChannel *gchansock;