homebridge / plugin-ui-utils

Create fully customisable configuration user interfaces for Homebridge plugins.
https://homebridge.io
MIT License
33 stars 7 forks source link

Resolve failed link requests #14

Closed dnicolson closed 11 months ago

dnicolson commented 11 months ago

:recycle: Current situation

Some plug-ins are not displaying any body modal content for some users. This is likely attributed to failed network requests.

:bulb: Proposed solution

Add an onerror attribute to the link elements and resolve the waiting promise.

Adding a call to setTimeout might also be needed in the future if network requests are failing too slowly.

This should fix https://github.com/homebridge/homebridge-config-ui-x/issues/1527.