try {
if (document.getElementById('web-navigation-search-box') && !document.querySelector('.web-nav-window-controls')) {
document.getElementById('web-navigation-search-box').insertAdjacentHTML('beforebegin', `
`);
if (document.getElementById('web-navigation-search-box')) {
document.getElementById('web-navigation-search-box').style.gridArea = "auto !important";
document.getElementById('web-navigation-search-box').style.marginTop = '0px !important';
}
if (document.getElementById('web-navigation-container')) {
document.getElementById('web-navigation-container').style.gridTemplateRows = '55px auto 1fr auto !important';
}
if (document.querySelector('.web-chrome')) {
document.querySelector('.web-chrome').style.width = "calc(100vw - var(--web-navigation-width))";
}
}
} catch (e) {
console.error("[JS] Error while trying to apply frame_macOS.js", e);
}