Skip to content
Snippets Groups Projects
Commit df4d126a authored by Thomas Schneider's avatar Thomas Schneider
Browse files

frontend: Log debug messages as such

parent 23aa4dd4
No related branches found
No related tags found
1 merge request!6apply layout of "template preview" for index page "schilder preview"
...@@ -11,13 +11,13 @@ function onInputHandler(event: Event) { ...@@ -11,13 +11,13 @@ function onInputHandler(event: Event) {
window.addEventListener("load", () => { window.addEventListener("load", () => {
if (document.getElementById('preview')) { if (document.getElementById('preview')) {
for (const el of document.getElementsByClassName('input-dispatch')) { for (const el of document.getElementsByClassName('input-dispatch')) {
console.log(el); console.debug(el);
el.addEventListener('input', onInputHandler); el.addEventListener('input', onInputHandler);
} }
} }
for (const op of document.querySelectorAll('.option .preview')) { for (const op of document.querySelectorAll('.option .preview')) {
console.log(op); console.debug(op);
const input_id = (op as HTMLElement).dataset.for; const input_id = (op as HTMLElement).dataset.for;
if (!input_id) { if (!input_id) {
console.error("Missing data-for attribute for", op); console.error("Missing data-for attribute for", op);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment