From 3e2160c0a99c1ee32398a527a25d2fa0ec1cb58b Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Tue, 7 May 2024 22:09:59 +0200 Subject: [PATCH] Adds documentation to apploader#reset --- lib/apploader.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/apploader.js b/lib/apploader.js index ac10897..0080fe3 100644 --- a/lib/apploader.js +++ b/lib/apploader.js @@ -26,6 +26,11 @@ var apps = []; var device = { id : DEVICEID, appsInstalled : [] }; var language; // Object of translations +/* This resets the list of installed apps to an empty list. + It can be used in case the device behind the apploader has changed + after init (i.e. emulator factory reset) so the dependency + resolution does not skip no longer installed apps. +*/ exports.reset = function(){ device.appsInstalled = []; }