Skip to content

Commit d2e2963

Browse files
committed
fix: set the initial value of the config values
1 parent b8d899a commit d2e2963

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/mixins/canvas-drawer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ let thisSpec
1818
* methods are available on any `MinimapElement` instance.
1919
*/
2020
export default class CanvasDrawer {
21-
constructor() {
21+
constructor () {
2222
// set in setModel of minimapElement
2323
this.minimap = undefined
2424
// set by minimapElement
25-
this.displayCodeHighlights = undefined
26-
this.ignoreWhitespacesInTokens = undefined
25+
this.displayCodeHighlights = atom.config.get('minimap.displayCodeHighlights')
26+
this.ignoreWhitespacesInTokens = atom.config.get('minimap.ignoreWhitespacesInTokens')
2727
}
28+
2829
/**
2930
* Initializes the canvas elements needed to perform the `Minimap` rendering.
3031
*/

0 commit comments

Comments
 (0)