updates API js alert re: --gradio-debug

This commit is contained in:
tim h 2022-12-24 13:23:16 -06:00
parent aa02e59707
commit b9fcc7ad00

View file

@ -381,7 +381,7 @@ async function testHostConnection() {
}
case 404: {
setConnectionStatus("apiissue");
const message = `The host is online, but the API seems to be disabled. Have you run the webui with the flag --api?`;
const message = `The host is online, but the API seems to be disabled.\nHave you run the webui with the flag '--api', or is the flag '--gradio-debug' currently active?`;
console.error(message);
if (notify) alert(message);
break;