Skip to content

Commit 61f0fd6

Browse files
committed
update example card sipCore retriever
1 parent 506b0cd commit 61f0fd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo/example-card.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, html, css } from "https://esm.run/lit-html@1";
1+
import { LitElement, html, css } from "https://cdn.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js";
22

33
class ExampleCard extends LitElement {
44
sipCore;
@@ -26,6 +26,9 @@ class ExampleCard extends LitElement {
2626
`;
2727

2828
connectedCallback() {
29+
if (window.sipCore) {
30+
this.sipCore = window.sipCore;
31+
}
2932
super.connectedCallback();
3033
window.addEventListener("sipcore-update", this.updateHandler);
3134
}

0 commit comments

Comments
 (0)