diff --git a/lib/binds.lua b/lib/binds.lua index 395c44cbc..20b20bd20 100644 --- a/lib/binds.lua +++ b/lib/binds.lua @@ -23,7 +23,7 @@ local modes = require("modes") local join, split = lousy.util.table.join, lousy.util.string.split -- URI aliases -local is_uri, split_uri = lousy.uri.is_uri, lousy.uri.split +local split_uri = lousy.uri.split --- Compatibility wrapper for @ref{modes/add_binds|modes.add_binds()}. -- @deprecated use @ref{modes/add_binds|modes.add_binds()} instead. @@ -482,7 +482,7 @@ modes.add_cmds({ format = "{uri}", }}, { ":w[inopen]", "Open one or more URLs in a new window.", { - func = function (w, o) window.new({o.arg}) end, + func = function (_, o) window.new({o.arg}) end, format = "{uri}", }}, { ":javascript, :js", "Evaluate JavaScript snippet.", diff --git a/lib/error_page.lua b/lib/error_page.lua index 7f01e51e4..d1a48fa63 100644 --- a/lib/error_page.lua +++ b/lib/error_page.lua @@ -17,6 +17,9 @@ local _M = {} local error_page_wm = require_web_module("error_page_wm") +--- Path to the whitelist of allowed invalid certificates. +-- @type string +-- @readwrite _M.cert_db_path = luakit.data_dir .. "/allowed_certificates.db" --- Connect to and initialize the bookmarks database.