Skip to content
Snippets Groups Projects
Commit 2892be62 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Keep cordova autoupdate but remove loop

parent 431687a2
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,8 @@ var ensureLocalPathPrefix = function (cb) {
// the cordova.file symbol is attached, properties like dataDirectory
// still can be null. Poll until we are sure the property is attached.
console.log(DEBUG_TAG + 'cordova.file.dataDirectory is null, retrying in 20ms');
Meteor.setTimeout(_.bind(ensureLocalPathPrefix, null, cb), 20);
// REMOVED to prevent loop in new app
// Meteor.setTimeout(_.bind(ensureLocalPathPrefix, null, cb), 20);
} else {
localPathPrefix = cordova.file.dataDirectory + 'meteor/';
cb();
......
......@@ -29,7 +29,7 @@ Package.onUse(function (api) {
api.addFiles('autoupdate_server.js', 'server');
api.addFiles('autoupdate_client.js', 'web.browser');
// api.addFiles('autoupdate_cordova.js', 'web.cordova');
api.addFiles('autoupdate_cordova.js', 'web.cordova');
api.export('Autoupdate');
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment