From 63fdfee3670bcf53894e9ea59b1581457307d064 Mon Sep 17 00:00:00 2001 From: Andi Kanzler Date: Sat, 14 Dec 2024 23:01:11 -0300 Subject: [PATCH] Fix demo mode Urgent fix for demo mode --- js/sitl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/sitl.js b/js/sitl.js index 2d0c2e2a1..338a3eea4 100644 --- a/js/sitl.js +++ b/js/sitl.js @@ -202,7 +202,9 @@ var SITLProcess = { } } - callback( sitlExePath + " " + args.join(" ") + "\n"); + if (callback) { + callback( sitlExePath + " " + args.join(" ") + "\n"); + } this.spawn(sitlExePath, args, callback); },