Permalink
Browse files

First code change

  • Loading branch information...
NickTikhonov committed Aug 18, 2016
1 parent 3ca7279 commit 89e174ab6ec6e270938338b34905f75bb74dbede
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/sourcefetch.js
View
@@ -38,12 +38,12 @@ export default {
},
toggle() {
console.log('Sourcefetch was toggled!');
return (
this.modalPanel.isVisible() ?
this.modalPanel.hide() :
this.modalPanel.show()
);
let editor
if (editor = atom.workspace.getActiveTextEditor()) {
let selection = editor.getSelectedText()
let reversed = selection.split("").reverse().join("")
editor.insertText(reversed)
}
}
};

0 comments on commit 89e174a

Please sign in to comment.