Fixes #19. Can now beautify new files that have not been created/saved.
This commit is contained in:
parent
b530eda6e3
commit
c34f6f9419
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue