chrome-devtools-frontend
Version:
Chrome DevTools UI
18 lines (14 loc) • 572 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 '../../core/dom_extension/dom_extension.js';
import '../../Images/Images.js';
import * as Platform from '../../core/platform/platform.js';
Platform.runOnWindowLoad(() => {
if (!window.opener) {
return;
}
// @ts-ignore TypeScript doesn't know about `Emulation` on `Window`.
const app = window.opener.Emulation.AdvancedApp.instance();
app.deviceModeEmulationFrameLoaded(document);
});