Skip to content

Commit

Permalink
Fixes #19. Can now beautify new files that have not been created/saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Jun 13, 2014
1 parent b530eda commit c34f6f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/atom-beautify.js
Expand Up @@ -165,6 +165,8 @@ function beautify() {
var editedFilePath = editor.getPath();

function getConfig(startPath) {
// Verify that startPath is a string
startPath = (typeof startPath === 'string') ? startPath : __dirname || '';
// Get the path to the config file
var configPath = findConfig('.jsbeautifyrc', startPath);

Expand Down

0 comments on commit c34f6f9

Please sign in to comment.