@assecosolutions/fox-avatar
Advanced tools
Comparing version 1.11.5 to 1.11.6-beta-0.1-beta.0
@@ -1607,2 +1607,3 @@ import { css, LitElement, html as html$2 } from 'lit'; | ||
render() { | ||
if (this.image) this.checkImage(); | ||
return html$2(_t || (_t = _` ${0} `), this.image ? this.renderImage() : this.renderLabel()); | ||
@@ -1632,2 +1633,9 @@ } | ||
} | ||
checkImage() { | ||
const img = new Image(); | ||
img.src = this.image; | ||
img.onerror = () => { | ||
this.image = ''; | ||
}; | ||
} | ||
} | ||
@@ -1634,0 +1642,0 @@ FoxAvatar.styles = [styles]; |
{ | ||
"name": "@assecosolutions/fox-avatar", | ||
"version": "1.11.5", | ||
"version": "1.11.6-beta-0.1-beta.0", | ||
"public": true, | ||
@@ -24,4 +24,4 @@ "publishConfig": { | ||
"peerDependencies": { | ||
"lit": "^2.0.0" | ||
"lit": "^2.5.0" | ||
} | ||
} |
@@ -52,4 +52,5 @@ import { LitElement } from 'lit'; | ||
protected renderInitials(): import("lit-html").TemplateResult<1>; | ||
protected checkImage(): void; | ||
} | ||
declare const name = "fox-avatar"; | ||
export {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62877
1469
2