We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e892f68 + 3e2160c commit 2938c27Copy full SHA for 2938c27
lib/apploader.js
@@ -26,6 +26,15 @@ var apps = [];
26
var device = { id : DEVICEID, appsInstalled : [] };
27
var language; // Object of translations
28
29
+/* This resets the list of installed apps to an empty list.
30
+ It can be used in case the device behind the apploader has changed
31
+ after init (i.e. emulator factory reset) so the dependency
32
+ resolution does not skip no longer installed apps.
33
+*/
34
+exports.reset = function(){
35
+ device.appsInstalled = [];
36
+}
37
+
38
/* call with {
39
DEVICEID:"BANGLEJS/BANGLEJS2"
40
VERSION:"2v20"
0 commit comments