diff --git a/public/app.js b/public/app.js
index e1a8efe..3150154 100644
--- a/public/app.js
+++ b/public/app.js
@@ -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;
diff --git a/public/index.html b/public/index.html
index 5782710..dd357f7 100644
--- a/public/index.html
+++ b/public/index.html
@@ -126,6 +126,7 @@
+