From 781d7b96fd647fd4b1fcc8da3093de5f0725174c Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 7 Mar 2023 14:58:07 +0000 Subject: [PATCH] fix device ID setting so tools for Bangle.js 1 use the right ID --- bin/lib/apploader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lib/apploader.js b/bin/lib/apploader.js index 329ece7b7..c1aaa5389 100644 --- a/bin/lib/apploader.js +++ b/bin/lib/apploader.js @@ -26,8 +26,10 @@ var device = { id : DEVICEID, appsInstalled : [] }; // call with {DEVICEID:"BANGLEJS/BANGLEJS2"} exports.init = function(options) { - if (options.DEVICEID) + if (options.DEVICEID) { DEVICEID = options.DEVICEID; + device.id = options.DEVICEID; + } // Load app metadata var dirs = require("fs").readdirSync(APPSDIR, {withFileTypes: true}); dirs.forEach(dir => {