mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
TBR=jacktfranklin@chromium.org Bug: chromium:1011811 Change-Id: I6c2480e67a29765a2ef67ae85202532917a4d718 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2351773 Reviewed-by: Simon Zünd <szuend@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org>
29 lines
895 B
JavaScript
29 lines
895 B
JavaScript
// Copyright 2018 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 Common from '../common/common.js';
|
|
import {VBox} from './Widget.js';
|
|
|
|
export class TargetCrashedScreen extends VBox {
|
|
/**
|
|
* @param {function():*} hideCallback
|
|
*/
|
|
constructor(hideCallback) {
|
|
super(true);
|
|
this.registerRequiredCSS('ui/targetCrashedScreen.css');
|
|
this.contentElement.createChild('div', 'message').textContent =
|
|
Common.UIString.UIString('DevTools was disconnected from the page.');
|
|
this.contentElement.createChild('div', 'message').textContent =
|
|
Common.UIString.UIString('Once page is reloaded, DevTools will automatically reconnect.');
|
|
this._hideCallback = hideCallback;
|
|
}
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
willHide() {
|
|
this._hideCallback.call(null);
|
|
}
|
|
}
|