From 626f8fe8803911ac1bb87259bf1ee7b0e3a11906 Mon Sep 17 00:00:00 2001 From: Alex X Date: Wed, 17 Apr 2024 16:49:39 +0300 Subject: [PATCH] Fix code style for JS --- custom_components/webrtc/www/webrtc-camera.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/webrtc/www/webrtc-camera.js b/custom_components/webrtc/www/webrtc-camera.js index c751ec9..a960ff4 100644 --- a/custom_components/webrtc/www/webrtc-camera.js +++ b/custom_components/webrtc/www/webrtc-camera.js @@ -605,16 +605,16 @@ class WebRTCCamera extends VideoRTC { const shortcuts = this.querySelector('.shortcuts'); shortcuts.addEventListener('click', ev => { const value = services[ev.target.dataset.index]; - if(value.more_info !== undefined) { + if (value.more_info !== undefined) { const event = new Event('hass-more-info', { bubbles: true, cancelable: true, composed: true, }); - event.detail = { entityId: value.more_info }; + event.detail = {entityId: value.more_info}; ev.target.dispatchEvent(event); } - if(value.service !== undefined) { + if (value.service !== undefined) { const [domain, name] = value.service.split('.'); this.hass.callService(domain, name, value.service_data || {}); }