« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/html.js b/src/html.js
index 3bec4269..3b399079 100644
--- a/src/html.js
+++ b/src/html.js
@@ -352,12 +352,13 @@ export class Tag {
   #traceError = null;
 
   constructor(tagName, attributes, content) {
-    this.tagName = tagName;
-    this.attributes = attributes;
-    this.content = content;
-
+  this.tagName = tagName;
+  this.attributes = attributes;
+  this.content = content;
+  if (process.env.DEBUG) { 
     this.#traceError = new Error();
   }
+}
 
   clone() {
     return Reflect.construct(this.constructor, [