提交 30dc021b 编写于 作者: M Matt Bierner

null -> undefined

上级 40e0f496
...@@ -61,8 +61,8 @@ class Settings { ...@@ -61,8 +61,8 @@ class Settings {
const minimapOpts = options.get(EditorOption.minimap); const minimapOpts = options.get(EditorOption.minimap);
const minimapEnabled = minimapOpts.enabled; const minimapEnabled = minimapOpts.enabled;
const minimapSide = minimapOpts.side; const minimapSide = minimapOpts.side;
const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : null); const backgroundColor = (minimapEnabled ? TokenizationRegistry.getDefaultBackground() : undefined);
if (backgroundColor === null || minimapSide === 'left') { if (typeof backgroundColor === 'undefined' || minimapSide === 'left') {
this.backgroundColor = null; this.backgroundColor = null;
} else { } else {
this.backgroundColor = Color.Format.CSS.formatHex(backgroundColor); this.backgroundColor = Color.Format.CSS.formatHex(backgroundColor);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册