From 1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Apr 2025 13:10:43 +0530 Subject: Connected url changed event --- src/LuaRuntime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LuaRuntime.cpp') diff --git a/src/LuaRuntime.cpp b/src/LuaRuntime.cpp index d9bc86e..70301b4 100644 --- a/src/LuaRuntime.cpp +++ b/src/LuaRuntime.cpp @@ -111,10 +111,10 @@ int LuaRuntime::lua_event_register(lua_State *state) { const int function_ref = luaL_ref(state, LUA_REGISTRYINDEX); event.function_ref = function_ref; // TODO: Delete ref on clear callback - event.handler = [state, function_ref](BrowserEvent &event) { + event.handler = [state, function_ref](BrowserEvent *event) { preserve_top(state, { lua_rawgeti(state, LUA_REGISTRYINDEX, function_ref); - event.lua_push(state); + event->lua_push(state); lua_call(state, 1, 0); }) }; -- cgit v1.3.1