diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-29 12:19:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-29 12:20:11 +0530 |
| commit | ed15eba453b7ddd0f4962c2d381fe40751973131 (patch) | |
| tree | 29f8dea45aeb882adfe600b24d789d24da7354dc /config.lua | |
| parent | bcecbced7e1af9d99443a7e823f18328c7943f09 (diff) | |
| download | null-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.tar.gz null-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.zip | |
Handle default for webview id
Diffstat (limited to 'config.lua')
| -rw-r--r-- | config.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |
