瀏覽代碼

Use const

Sebastien Lebreton 5 年之前
父節點
當前提交
13fe44379a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;