Skip to content

Commit

Permalink
Adds documentation to apploader#reset
Browse files Browse the repository at this point in the history
  • Loading branch information
halemmerich committed May 7, 2024
1 parent 4db6229 commit 3e2160c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/apploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
Expand Down

0 comments on commit 3e2160c

Please sign in to comment.