mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2025-05-18 21:55:34 +00:00
16 lines
366 B
JavaScript
16 lines
366 B
JavaScript
import { updateConfig } from "/submit.js";
|
|
|
|
const form = document.querySelector("form.config");
|
|
|
|
form.addEventListener("reset", async (event) => {
|
|
event.preventDefault();
|
|
|
|
const ok = confirm(
|
|
"Sicher, dass du alle Einstellungen zurücksetzen möchtest?"
|
|
);
|
|
if (ok) {
|
|
updateConfig({
|
|
method: "DELETE",
|
|
});
|
|
}
|
|
});
|