Files
home-assistant-alt/hass/settings/custom_components/hacs/hacs_frontend_experimental/c.e65203af.js
T
2024-01-11 15:10:51 +03:00

2 lines
402 B
JavaScript

const e=e=>t=>({kind:"method",placement:"prototype",key:t.key,descriptor:{set(e){this[`__${String(t.key)}`]=e},get(){return this[`__${String(t.key)}`]},enumerable:!0,configurable:!0},finisher(o){const r=o.prototype.connectedCallback;o.prototype.connectedCallback=function(){if(r.call(this),this[t.key]){const o=this.renderRoot.querySelector(e);if(!o)return;o.scrollTop=this[t.key]}}}});export{e as r};