mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
R=aerotwist@chromium.org Bug: 1058320 Change-Id: I35c14444a2f62ad91ae3b96e8be895f78c64a7e7 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2391226 Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
18 lines
714 B
JavaScript
18 lines
714 B
JavaScript
// Copyright 2015 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.
|
|
|
|
// @ts-nocheck
|
|
// TODO(crbug.com/1011811): Enable TypeScript compiler checks
|
|
|
|
import * as Host from '../host/host.js';
|
|
import * as UI from '../ui/ui.js';
|
|
|
|
export function reload() {
|
|
if (UI.DockController.DockController.instance().canDock() &&
|
|
UI.DockController.DockController.instance().dockSide() === UI.DockController.State.Undocked) {
|
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.setIsDocked(true, function() {});
|
|
}
|
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.reattach(() => window.location.reload());
|
|
}
|