Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * Phonegap sqlite backup plugin for Android
- * patadejaguar@gmail.com 2012
- *
- */
- var ROOTH_PATH = "/mnt/sdcard/";
- var LocalBackup = function() {};
- if( window.resolveLocalFileSystemURI ){
- window.resolveLocalFileSystemURI(ROOTH_PATH, function(dirEntry) {}, function(evt){ ROOTH_PATH = "/mnt/extsd/"; });
- }
- LocalBackup.prototype.run = function(content, success, fail) {
- fail = (typeof fail != "function") ? function(){} : fail;
- success = (typeof sucess != "function") ? function(){} : success;
- return cordova.exec( function(args) {
- success(args);
- }, function(args) {
- fail(args);
- }, 'LocalBackup', '', [content]);
- };
- if(!window.plugins) {
- window.plugins = {};
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement