✨ User folder name if none provided
This commit is contained in:
+9
-1
@@ -36,7 +36,15 @@ class Watcher
|
||||
// Connect event
|
||||
this.socket.on('connect', () =>
|
||||
{
|
||||
this.socket.emit('start_project', { name: this.config.name, path: this.path, excludeRegex: '' + this.excludeRegex })
|
||||
let name = this.config.name
|
||||
|
||||
// If no name, use folder name
|
||||
if(!name)
|
||||
{
|
||||
name = path.parse(this.path).name
|
||||
}
|
||||
|
||||
this.socket.emit('start_project', { name, path: this.path, excludeRegex: '' + this.excludeRegex })
|
||||
|
||||
// Debug
|
||||
if(this.config.debug)
|
||||
|
||||
Reference in New Issue
Block a user