call on constructor

This commit is contained in:
Niels Lyngsø
2023-01-10 11:12:26 +01:00
parent b161e91d32
commit e3d32e9609

View File

@@ -30,8 +30,8 @@ export class UmbDashboardPerformanceProfilingElement extends UmbLitElement {
@state()
private _profilingPerformance = false;
connectedCallback(): void {
super.connectedCallback();
constructor() {
super();
this._getProfilingStatus();
this._profilingPerformance = localStorage.getItem('profilingPerformance') === 'true';
}