use connected callback instead of constructor

This commit is contained in:
Jonas Leder 2022-03-25 10:13:32 +01:00
parent 61bc809fa8
commit e2524efc6a
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA

View file

@ -1,6 +1,5 @@
class blogFooter extends HTMLElement {
constructor(){
super();
connectedCallback(){
this.getBlogEntries();
}