@digipair/skill-web-font-awesome 0.9.0 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js
CHANGED
|
@@ -1924,6 +1924,19 @@ function n(t) {
|
|
|
1924
1924
|
}
|
|
1925
1925
|
|
|
1926
1926
|
class IconElement extends s {
|
|
1927
|
+
connectedCallback() {
|
|
1928
|
+
super.connectedCallback();
|
|
1929
|
+
if (document.querySelector('#digipair-font-awesome')) {
|
|
1930
|
+
return;
|
|
1931
|
+
}
|
|
1932
|
+
const style = document.createElement('style');
|
|
1933
|
+
style.id = 'digipair-font-awesome';
|
|
1934
|
+
style.textContent = `
|
|
1935
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
|
|
1936
|
+
`;
|
|
1937
|
+
// ajout au header de la page
|
|
1938
|
+
document.head.appendChild(style);
|
|
1939
|
+
}
|
|
1927
1940
|
render() {
|
|
1928
1941
|
return x`
|
|
1929
1942
|
<style>
|
package/index.esm.js
CHANGED
|
@@ -1920,6 +1920,19 @@ function n(t) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
1922
|
class IconElement extends s {
|
|
1923
|
+
connectedCallback() {
|
|
1924
|
+
super.connectedCallback();
|
|
1925
|
+
if (document.querySelector('#digipair-font-awesome')) {
|
|
1926
|
+
return;
|
|
1927
|
+
}
|
|
1928
|
+
const style = document.createElement('style');
|
|
1929
|
+
style.id = 'digipair-font-awesome';
|
|
1930
|
+
style.textContent = `
|
|
1931
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
|
|
1932
|
+
`;
|
|
1933
|
+
// ajout au header de la page
|
|
1934
|
+
document.head.appendChild(style);
|
|
1935
|
+
}
|
|
1923
1936
|
render() {
|
|
1924
1937
|
return x`
|
|
1925
1938
|
<style>
|