add mobile ICE settings reset
Build and Publish / Metadata (push) Successful in 1s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 28s

This commit is contained in:
mats committed 2026-09-22 16:39:20 +02:00
1 parent 365415740e
commit c9f9ff857e
2 files changed
+13 -2

No files matched your search

+12 -2
View File
@@ -2074,10 +2074,20 @@ $('#ice-cancel').onclick = () => $('#modal-backdrop').classList.add('hidden');
$('#modal-backdrop').onclick = (ev) => {
if (ev.target === $('#modal-backdrop')) $('#modal-backdrop').classList.add('hidden');
};
$('#ice-reset').onclick = () => {
function resetIceSettings(reload = false) {
localStorage.removeItem(LS_ICE);
$('#override-enabled').checked = false;
fetchIce().then((server) => { $('#ice-json').value = JSON.stringify(server, null, 2); });
fetchIce().then((server) => {
$('#ice-json').value = JSON.stringify(server, null, 2);
if (reload) location.reload();
}).catch(() => {
if (reload) location.reload();
});
}
$('#ice-reset').onclick = () => resetIceSettings();
$('#btn-reset-ice-mobile').onclick = () => {
toast('Resetting saved ICE settings…', 'ok');
resetIceSettings(true);
};
$('#ice-save').onclick = () => {
const enabled = $('#override-enabled').checked;