зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1591975 - Summary: Do not render Watchpoint button in console r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D50984 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ce02064d8a
Коммит
4ebcdca08e
|
@ -306,7 +306,12 @@ class ObjectInspectorItem extends Component<Props> {
|
|||
renderWatchpointButton() {
|
||||
const { item, removeWatchpoint } = this.props;
|
||||
|
||||
if (!item || !item.contents || !item.contents.watchpoint) {
|
||||
if (
|
||||
!item ||
|
||||
!item.contents ||
|
||||
!item.contents.watchpoint ||
|
||||
typeof L10N === "undefined"
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -8424,7 +8424,7 @@ class ObjectInspectorItem extends Component {
|
|||
removeWatchpoint
|
||||
} = this.props;
|
||||
|
||||
if (!item || !item.contents || !item.contents.watchpoint) {
|
||||
if (!item || !item.contents || !item.contents.watchpoint || typeof L10N === "undefined") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче