diff -r 0b5ab53007a9 -r 2716cd8e498d svghmi/svghmi.js --- a/svghmi/svghmi.js Thu May 05 10:37:36 2022 +0200 +++ b/svghmi/svghmi.js Thu May 05 11:48:43 2022 +0200 @@ -18,16 +18,7 @@ function init_widgets() { Object.keys(hmi_widgets).forEach(function(id) { let widget = hmi_widgets[id]; - let init = widget.init; - if(typeof(init) == "function"){ - try { - init.call(widget); - } catch(err) { - console.log(err); - } - } - if(widget.forced_frequency !== undefined) - widget.frequency = widget.forced_frequency; + widget.do_init(); }); };