We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c033e70 + 11f3346 commit 2d8e759Copy full SHA for 2d8e759
custom_components/webrtc/www/webrtc-camera.js
@@ -629,9 +629,13 @@ class WebRTCCamera extends VideoRTC {
629
});
630
631
this.renderTemplate('shortcuts', () => {
632
- shortcuts.innerHTML = this.config.shortcuts.map((value, index) => `
+ const innerHTML = this.config.shortcuts.map((value, index) => `
633
<ha-icon data-index="${index}" icon="${value.icon}" title="${value.name}"></ha-icon>
634
`).join('');
635
+
636
+ if (shortcuts.innerHTML !== innerHTML) {
637
+ shortcuts.innerHTML = innerHTML;
638
+ }
639
640
}
641
0 commit comments