aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-29 12:19:15 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-29 12:20:11 +0530
commited15eba453b7ddd0f4962c2d381fe40751973131 (patch)
tree29f8dea45aeb882adfe600b24d789d24da7354dc /config.lua
parentbcecbced7e1af9d99443a7e823f18328c7943f09 (diff)
downloadnull-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.tar.gz
null-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.zip
Handle default for webview id
Diffstat (limited to '')
-rw-r--r--config.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.lua b/config.lua
index 2dd3f51..a7b408b 100644
--- a/config.lua
+++ b/config.lua
@@ -5,7 +5,10 @@ web = web
--- @type table
uv = uv
-local function trim(s) return s:gsub("^%s*(.-)%s*$", "%1") end
+local function trim(s)
+ local res, _ = string.gsub(s, "^%s*(.-)%s*$", "%1")
+ return res
+end
local function get_current_tab_index()
local currentTab = web.tabs.current();