Browse Source

Use const

Sebastien Lebreton 5 years ago
parent
commit
13fe44379a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Playground/js/monacoCreator.js

+ 1 - 1
Playground/js/monacoCreator.js

@@ -122,7 +122,7 @@ class MonacoCreator {
 
         monaco.languages.registerColorProvider(this.monacoMode, {
             provideColorPresentations: (model, colorInfo) => {
-                var color = colorInfo.color;
+                const color = colorInfo.color;
                 
                 const precision = 100.0;
                 const converter = (n) => Math.round(n * precision) / precision;