Report erros in UI by default

This commit is contained in:
hlohaus
2025-01-27 23:40:37 +01:00
parent 16e5d9ee86
commit 1378c5027a
2 changed files with 2 additions and 2 deletions

View File

@@ -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">

View File

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