Skip to content

Commit

Permalink
First code change
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Tikhonov committed Aug 18, 2016
1 parent 3ca7279 commit 89e174a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/sourcefetch.js
Expand Up @@ -38,12 +38,12 @@ export default {
}, },


toggle() { toggle() {
console.log('Sourcefetch was toggled!'); let editor
return ( if (editor = atom.workspace.getActiveTextEditor()) {
this.modalPanel.isVisible() ? let selection = editor.getSelectedText()
this.modalPanel.hide() : let reversed = selection.split("").reverse().join("")
this.modalPanel.show() editor.insertText(reversed)
); }
} }


}; };

0 comments on commit 89e174a

Please sign in to comment.