Skip to content

Commit

Permalink
logo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Weedshaker committed Mar 11, 2024
1 parent 688f5dc commit d76471f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/es/Environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ self.Environment = {
isTestingEnv: location.hostname === 'localhost',
language: currentScriptUrl.searchParams.get('language') || document.documentElement.getAttribute('lang') || 'en',
stage: currentScriptUrl.searchParams.get('stage') || document.documentElement.getAttribute('stage') || 'alpha',
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '3.0.27', // https://semver.org/
version: currentScriptUrl.searchParams.get('version') || document.documentElement.getAttribute('version') || '3.0.28', // https://semver.org/
/**
* Get custom mobile breakpoint
* @param {{constructor?: string, tagName?: string, namespace?: string}} organism
Expand Down
6 changes: 1 addition & 5 deletions src/es/components/atoms/logo/Logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,10 @@ export default class Logo extends Shadow(WebWorker()) {
}

connectedCallback () {
this.hidden = true
const showPromises = []
if (this.shouldRenderCSS()) showPromises.push(this.renderCSS())
if (this.shouldRenderHTML()) showPromises.push(this.renderHTML())
Promise.all(showPromises).then(() => {
this.svgs.forEach(svg => svg.addEventListener('animationiteration', this.animationiterationListener))
this.hidden = false
})
Promise.all(showPromises).then(() => this.svgs.forEach(svg => svg.addEventListener('animationiteration', this.animationiterationListener)))
this.addEventListener('click', this.clickEventListener)
}

Expand Down

0 comments on commit d76471f

Please sign in to comment.