diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-05 11:49:48 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-04-05 13:10:39 +0530 |
| commit | 2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d (patch) | |
| tree | bbea54f175105a4167f1d07ca50a4a10632b38a2 /lua | |
| parent | 7e09b35b008f58809ac56184a4f83ab875c038e0 (diff) | |
| download | null-browser-2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d.tar.gz null-browser-2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d.zip | |
Add package path to lua (only current build dir)
Diffstat (limited to '')
| -rw-r--r-- | lua/null-browser/api.lua (renamed from lua/api.lua) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/api.lua b/lua/null-browser/api.lua index b6495e0..d2e0be7 100644 --- a/lua/api.lua +++ b/lua/null-browser/api.lua @@ -1,9 +1,13 @@ +print("FOOOOOOOOOOBARRRRRR") + local function shallow_copy(t) local t2 = {} for k, v in pairs(t) do t2[k] = v end return t2 end +web.event = web.event or {} + web.event.add_listener = function(events, opts) opts = shallow_copy(opts or {}) if type(events) ~= "table" then events = { events } end |
