blob: ee01ee8201776e14fe20372fc4d2983049b4f200 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '/strings.m.js';
import {loadTimeData} from 'chrome://resources/js/load_time_data.js';
document.addEventListener('DOMContentLoaded', () => {
if (!loadTimeData.getBoolean('debugPagesEnabled')) {
return;
}
const host = loadTimeData.getString('host');
if (host) {
window.location.href = `chrome://${host}`;
}
});