class CustomStatusbar extends HTMLElement { static get observedAttributes() { return ['message']; } constructor() { super(); this._message = 'Ready'; } attributeChangedCallback(name, oldValue, newValue) { if (name === 'message') { this._message = newValue; this.render(); } } connectedCallback() { this.render(); } render() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
${this._message}
main
0 errors
UTF-8
LF
`; feather.replace(); } } customElements.define('custom-statusbar', CustomStatusbar);