Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 193c09d

Browse files
committed
fix formatting errors
1 parent fcae1a2 commit 193c09d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/markdown-preview-view.coffee

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class MarkdownPreviewView extends ScrollView
9999
@css('zoom', zoomLevel - .1)
100100
'markdown-preview:reset-zoom': =>
101101
@css('zoom', 1)
102-
'click': (event)=>
102+
'click': (event) =>
103103
event.stopPropagation()
104104
@followLink(event)
105105

@@ -256,14 +256,14 @@ class MarkdownPreviewView extends ScrollView
256256

257257
true
258258

259-
followLink: (event)->
259+
followLink: (event) ->
260260
return false if @loading
261-
if event.target.tagName == 'A' && event.target.protocol == 'file:'
261+
if event.target.tagName is 'A' and event.target.protocol is 'file:'
262262
activeFile = @getPath()
263263
activeFileDir = path.dirname(activeFile)
264264
clickedFile = event.target.getAttribute('href')
265265
clickedPath = path.join(activeFileDir, clickedFile)
266-
atom.workspace.open clickedPath, { split: 'left' }
266+
atom.workspace.open clickedPath, {split: 'left'}
267267

268268
saveAs: ->
269269
return if @loading

0 commit comments

Comments
 (0)