Skip to content

Commit

Permalink
Merge pull request #61 from halemmerich/allowDeviceListReset
Browse files Browse the repository at this point in the history
Allow resetting the list of installed apps without complete init
  • Loading branch information
gfwilliams authored May 10, 2024
2 parents e892f68 + 3e2160c commit 2938c27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/apploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ 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 = [];
}

/* call with {
DEVICEID:"BANGLEJS/BANGLEJS2"
VERSION:"2v20"
Expand Down

0 comments on commit 2938c27

Please sign in to comment.