chrome-devtools-frontend
Version:
Chrome DevTools UI
18 lines (13 loc) • 474 B
text/typescript
// Copyright 2014 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.
import './dom_extension/dom_extension.js';
import * as Platform from './platform/platform.js';
function toolboxLoaded(): void {
if (!window.opener) {
return;
}
const app = window.opener.Emulation.AdvancedApp._instance();
app.toolboxLoaded(document);
}
Platform.runOnWindowLoad(toolboxLoaded);