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:
Anshul 2019-10-31 05:02:32 +00:00
Родитель ce02064d8a
Коммит 4ebcdca08e
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -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;
}