mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-11-01 03:52:43 +08:00
Report erros in UI by default
This commit is contained in:
@@ -153,7 +153,7 @@
|
||||
</div>
|
||||
<div class="field">
|
||||
<span class="label">Report errors</span>
|
||||
<input type="checkbox" id="report_error"/>
|
||||
<input type="checkbox" id="report_error" checked/>
|
||||
<label for="report_error" class="toogle" title=""></label>
|
||||
</div>
|
||||
<div class="field box">
|
||||
|
||||
@@ -2302,7 +2302,7 @@ async function api(ressource, args=null, files=null, message_id=null, scroll=tru
|
||||
}
|
||||
} else if (args) {
|
||||
if (ressource == "log") {
|
||||
if (appStorage.getItem("report_error") != "true") {
|
||||
if (!document.getElementById("report_error").checked) {
|
||||
return;
|
||||
}
|
||||
url = `https://roxky-g4f-demo.hf.space${url}`;
|
||||
|
||||
Reference in New Issue
Block a user