NTP status widget: d.getSeconds is not a function
Already mentioned in #7784 but creating a separate bug for this.
When you select either the tunnels or the mobile tab on the IPsec widget, the browser console immediately gets spammed with
Uncaught TypeError: d.getSeconds is not a function - error logged every second. Traced it to the NTP widget , apparently there's some weird interaction between the two widgets.
P.S. Same problem with 2.3.4-p1.
Updated by Steve Beaver over 4 years ago
- Assignee set to Steve Beaver
Looks like both widgets have a global var called "d". I bet they are stepping on each other. Would have been a good idea to use a widget-name-based prefix with all globals, like ntp_d, ipsec_d etc.
Renaming the var in the NTP widget seems to have fixed the issue.