let headerHeight=(header.value as HTMLElement).getBoundingClientRect().height;
//(panel.value as HTMLElement).style.setProperty(‘–header-height’,`${headerHeight}px`);
The commented line is where it crashes, the “send error report” pops up and the application closes. I sent the report.
Expected behavior: If there’s a problem with the JavaScript code, an exception should appear in the JavaScript console, it should not cause a hard crash.