Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Clooos authored Oct 14, 2023
1 parent 28c5cf6 commit 6454869
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/bubble-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var version = 'v1.2.2';
var version = 'v1.2.3';

let editor;

Expand Down Expand Up @@ -271,8 +271,8 @@ class BubbleCard extends HTMLElement {
let name = this.config.name ? this.config.name : this.config.entity ? hass.states[entityId].attributes.friendly_name : '';
let widthDesktop = this.config.width_desktop || '540px';
let widthDesktopDivided = widthDesktop ? widthDesktop.match(/(\d+)(\D+)/) : '';
let shadowOpacity = this.config.shadow_opacity !== undefined ? this.config.shadow_opacity : '10';
let bgBlur = this.config.bg_blur !== undefined ? this.config.bg_blur : '14';
let shadowOpacity = this.config.shadow_opacity !== undefined ? this.config.shadow_opacity : '0';
let bgBlur = this.config.bg_blur !== undefined ? this.config.bg_blur : '10';
let isSidebarHidden = this.config.is_sidebar_hidden || false;
let state = entityId ? hass.states[entityId].state : '';
let formatedState;
Expand Down Expand Up @@ -763,10 +763,13 @@ class BubbleCard extends HTMLElement {
let initPopUp;

if (!this.popUp) {
initPopUp = setInterval(createPopUp, 0);
} else {
clearInterval(initPopUp);
createPopUp();
initPopUp = setInterval(() => {
if (this.popUp) {
clearInterval(initPopUp);
} else {
createPopUp();
}
}, 0);
}
break;

Expand Down

0 comments on commit 6454869

Please sign in to comment.