mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-11 23:14:13 +03:00
fix logic
This commit is contained in:
parent
71577f214d
commit
4865886721
@ -246,7 +246,7 @@ operation dispatchEvent %{
|
||||
JS_GetProperty(cx, JSAPI_THIS_OBJECT(cx, vp), "onload", &eventval);
|
||||
}
|
||||
|
||||
if (JSVAL_IS_VOID(eventval)) {
|
||||
if (!JSVAL_IS_VOID(eventval)) {
|
||||
event_argv[0] = eventval;
|
||||
jsret = JS_CallFunctionValue(cx, NULL, eventval, 1, event_argv, &event_rval);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user