diff --git a/doc/development/frontend.md b/doc/development/frontend.md
index 735b41314ef3c18ad966be533bfb514460586ae2..c6aafc926eec59dcf8a4f4fc16f55ee69c53837b 100644
--- a/doc/development/frontend.md
+++ b/doc/development/frontend.md
@@ -227,14 +227,15 @@ class MyThing {
 gl.MyThing = new MyThing();
 
 // best
+
 let singleton;
 
 class MyThing {
   constructor() {
     if (!singleton) {
-       singleton = this;
-       singleton.init();
-     }
+      singleton = this;
+      singleton.init();
+    }
       return singleton;
   }
 
@@ -246,6 +247,7 @@ class MyThing {
 }
 
 gl.MyThing = MyThing;
+
 ```
 
 ## Supported browsers