mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 09:47:56 +08:00
Bug: 1006759 Change-Id: Ia7c21512f22f0bd4b6c68edd2b221f5dee1c4e2c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2017144 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
15 lines
522 B
JavaScript
15 lines
522 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 {State} from './DockController.js';
|
|
|
|
export function reload() {
|
|
if (self.Components.dockController.canDock() && self.Components.dockController.dockSide() === State.Undocked) {
|
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.setIsDocked(true, function() {});
|
|
}
|
|
window.location.reload();
|
|
}
|