From ef6f582b5a529f79458a15803f77c9a002474b1e Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 7 Feb 2017 10:39:08 +0100 Subject: [PATCH] Fix my poor JS knowledge --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 636e6e7..5fe6359 100644 --- a/index.js +++ b/index.js @@ -39,9 +39,10 @@ class VirtualBox { if (opts.writable === false || opts.readonly) args.push('--readonly') if (opts.transient) args.push('--transient') + let that = this; this.command(args, function () { const args2 = ['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'] - this.command(args2, done) + that.command(args2, done) }) }