diff --git a/src/lightdm-webkit2-greeter-ext.c b/src/lightdm-webkit2-greeter-ext.c index 7999644..8aec27a 100644 --- a/src/lightdm-webkit2-greeter-ext.c +++ b/src/lightdm-webkit2-greeter-ext.c @@ -1418,7 +1418,7 @@ window_object_cleared_callback(WebKitScriptWorld *world, kJSPropertyAttributeNone, NULL); - greeter_util_object = JSObjectMake(context, greeter_util_class, NULL); + greeter_util_object = JSObjectMake(jscontext, greeter_util_class, NULL); JSObjectSetProperty(context, globalObject,