mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 17:27:22 +08:00
Bug: chromium:1011811 Change-Id: Ia3b336e72fedfff3d0df41ac201e0efbaa4eb5f8 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2416560 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Andres Olivares <andoli@chromium.org>
15 lines
636 B
JavaScript
15 lines
636 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.
|
|
|
|
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());
|
|
}
|