// Update Modal — legacy hook; prefer Settings → Software Updates
function initUpdateModal() {
  if (document.getElementById('updateModal')) return;
  const link = document.createElement('a');
  link.href = '/static/settings.html#app-updates-settings';
  link.className = 'd-none';
  link.id = 'updateModalRedirect';
  document.body.appendChild(link);
}

if (document.readyState === 'loading') {
  document.addEventListener('DOMContentLoaded', initUpdateModal);
} else {
  initUpdateModal();
}
