aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-05 13:10:43 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-05 13:14:06 +0530
commit1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae (patch)
tree622d1bb48d35f05b17ef69db1b5919be89b86aab /src/LuaRuntime.cpp
parent2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d (diff)
downloadnull-browser-1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae.tar.gz
null-browser-1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae.zip
Connected url changed event
Diffstat (limited to '')
-rw-r--r--src/LuaRuntime.cpp4
1 files changed, 2 insertions, 2 deletions
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);
})
};