Hide troubleshoot if a message needs to be shown
Summary: Also remove the suppress error usage as is it was never used. Reviewed By: aigoncharov Differential Revision: D49910876 fbshipit-source-id: 7267eaddadb73ab2b6e2aab0045157271ceed427
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a4515acc0f
commit
80fc8eb4ed
@@ -204,6 +204,9 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function showMessage(text) {
|
function showMessage(text) {
|
||||||
|
// Dismiss the troubleshoot as otherwise no other message is shown.
|
||||||
|
toggleTroubleshoot(false);
|
||||||
|
|
||||||
if (suppressErrors) {
|
if (suppressErrors) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,6 @@
|
|||||||
(function () {
|
(function () {
|
||||||
// FIXME: needed to make Metro work
|
// FIXME: needed to make Metro work
|
||||||
window.global = window;
|
window.global = window;
|
||||||
let suppressErrors = false;
|
|
||||||
|
|
||||||
// Listen to changes in the network state, reload when online.
|
// Listen to changes in the network state, reload when online.
|
||||||
// This handles the case when the device is completely offline
|
// This handles the case when the device is completely offline
|
||||||
@@ -167,9 +166,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showMessage(text) {
|
function showMessage(text) {
|
||||||
if (suppressErrors) {
|
// Dismiss the troubleshoot as otherwise no other message is shown.
|
||||||
return;
|
toggleTroubleshoot(false);
|
||||||
}
|
|
||||||
|
|
||||||
let box = document.getElementById('loading');
|
let box = document.getElementById('loading');
|
||||||
if (box) {
|
if (box) {
|
||||||
|
|||||||
Reference in New Issue
Block a user