blob: a2e9220743e009082ce8831cf2b50cc1988aac59 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* This file should only be included once. It will generate an assert error if
* it's included more than once, which can happen when an include is misspelled.
*/
import {assert} from 'chrome://resources/js/assert.m.js';
declare global {
interface Window {
defaultResourceLoaded: boolean;
}
}
assert(
!window.defaultResourceLoaded,
'welcome.js run twice. You probably have an invalid import.');
/** Global defined when the main welcome script runs. */
window.defaultResourceLoaded = true;