aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-06 20:24:27 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-06 20:24:27 +0530
commitfec0d51acfc967e32d1dfb25eec4e6ab2e0bcc30 (patch)
tree60438e53067c2d08315f56b54ffd04f5afd8364d /config.lua
parent85a2c290f922f648e5e9f0e69c03116f2d0aeaa6 (diff)
downloadnull-browser-fec0d51acfc967e32d1dfb25eec4e6ab2e0bcc30.tar.gz
null-browser-fec0d51acfc967e32d1dfb25eec4e6ab2e0bcc30.zip
Add web.inspect with inspect.lua
Diffstat (limited to 'config.lua')
-rw-r--r--config.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.lua b/config.lua
index 360ef11..76db77c 100644
--- a/config.lua
+++ b/config.lua
@@ -1,9 +1,9 @@
print('hello starting up...')
--- @type table
-local web = web
+web = web
--- @type table
-local uv = uv
+uv = uv
local function trim(s)
local res, _ = string.gsub(s, '^%s*(.-)%s*$', '%1')
@@ -24,7 +24,7 @@ local history = require 'null-browser.extras.history'
web.event.add_listener('UrlChanged', {
callback = function(opts)
- print('url change', opts.url);
+ print('url change', web.inspect(opts));
history.add(opts.url)
end
})