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

Commit

Permalink
fix formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tlnagy committed Oct 19, 2016
1 parent fcae1a2 commit 193c09d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/markdown-preview-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class MarkdownPreviewView extends ScrollView
@css('zoom', zoomLevel - .1)
'markdown-preview:reset-zoom': =>
@css('zoom', 1)
'click': (event)=>
'click': (event) =>
event.stopPropagation()
@followLink(event)

Expand Down Expand Up @@ -256,14 +256,14 @@ class MarkdownPreviewView extends ScrollView

true

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

saveAs: ->
return if @loading
Expand Down

0 comments on commit 193c09d

Please sign in to comment.