chromium/components/web_app_resources/web_app_error_page.js

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

const centerContainer = document.getElementById('centerContainer');
const errorContainer = document.getElementById('errorContainer');
const supplementaryIcon = document.getElementById('$i18n{supplementary_icon}');

if (supplementaryIcon !== null && supplementaryIcon.id === 'offlineIcon') {
  centerContainer.append(errorContainer);
  supplementaryIcon.style.display = 'inline';
} else {
  errorContainer.classList.add('center-bottom');
}