Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Clooos authored Oct 21, 2023
1 parent 3b14d5f commit bfa8a7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/bubble-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ class BubbleCard extends HTMLElement {
const backOpen = this.config.back_open || false;
backOpen ? localStorage.setItem('backOpen', true) : localStorage.setItem('backOpen', false);
const backOpenState = localStorage.getItem('backOpen') === 'true';
console.log("BackOpenState : " + backOpenState);


if (backOpenState) {
window.backOpen = true;
const event = new Event('popUpInitialized');
Expand Down Expand Up @@ -441,9 +440,9 @@ class BubbleCard extends HTMLElement {

window.addEventListener('click', function(e) {
// Reset auto close
loacation.hash === popUpHash && resetAutoClose();
location.hash === popUpHash && resetAutoClose();

if (loaction.hash !== previousHash) {
if (location.hash !== previousHash) {
previousHash = location.hash;
if (popUpHash !== location.hash) {
return;
Expand Down Expand Up @@ -619,7 +618,7 @@ class BubbleCard extends HTMLElement {
margin: 0 -${marginCenter}; /* 7px */
width: 100%;
background-color: ${rgbaColor};
box-shadow: 0px 0px 50px rgba(0,0,0,${popUp === shadowOpacity / 100});
box-shadow: 0px 0px 50px rgba(0,0,0,${shadowOpacity / 100});
backdrop-filter: blur(${bgBlur}px);
-webkit-backdrop-filter: blur(${bgBlur}px);
border-radius: 42px;
Expand Down Expand Up @@ -674,7 +673,7 @@ class BubbleCard extends HTMLElement {
#root.close-pop-up {
transform: translateY(0%);
transition: transform .4s !important;
/* animation: hide 1s forwards; */
box-shadow: none;
}
@media only screen and (min-width: 768px) {
#root {
Expand Down

0 comments on commit bfa8a7b

Please sign in to comment.