diff --git a/init.lua b/init.lua index fa65843..c628c7e 100644 --- a/init.lua +++ b/init.lua @@ -188,8 +188,9 @@ function module.menu_client(custom_menu, c) end end + local class = c.class or "" for regex, entries in pairs(custom_menu) do - if string.find(c.class, regex) then + if string.find(class, regex) then for _, e in ipairs(entries) do local menu_entry = generate_menu_entry(e) if menu_entry then