diff --git a/display/linkoverlay.js b/display/linkoverlay.js
index 0aa25f026213e38228f529ed9ddaca1961eb4f61..912089aa12164eef6af7d7be462a49da8def63b9 100644
--- a/display/linkoverlay.js
+++ b/display/linkoverlay.js
@@ -33,12 +33,8 @@ class LinkOverlay {
 
             const colorStrip = document.createElement("div");
             colorStrip.className = "rel-container";
-            colorStrip.style =
-                "background-color: " +
-                this.graph.edgeColors[link] +
-                "; width: " +
-                10 * chars +
-                "px;";
+            colorStrip.style.backgroundColor = this.graph.edgeColors[link];
+            colorStrip.style.width = 10 * chars + "px";
             relation.appendChild(colorStrip);
         }
     }