mirror of
https://github.com/vicious-widgets/vicious
synced 2023-12-14 07:13:07 +01:00
Disallow using a string widget type.
This commit is contained in:
parent
756215f020
commit
22033bae53
1 changed files with 0 additions and 5 deletions
5
init.lua
5
init.lua
|
@ -110,11 +110,6 @@ function register(widget, wtype, format, timer, field, padd)
|
|||
reg.timer = 1
|
||||
end
|
||||
|
||||
-- Allow using a string widget type
|
||||
if type(reg.type) == "string" then
|
||||
reg.type = widgets[reg.type]
|
||||
end
|
||||
|
||||
-- Register reg object
|
||||
regregister(reg)
|
||||
|
||||
|
|
Loading…
Reference in a new issue