diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2019-05-17 20:33:26 +0200 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2019-05-17 20:33:26 +0200 |
commit | 1313495dc84357caa9392eb19c4c90b18dfcead5 (patch) | |
tree | c86d196e7c7f75381bee534f7c6cb81036be83dd /js | |
parent | 58df025f735e2b15357b0de018a581da6bb3d83b (diff) | |
download | ematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.tar.lz ematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.tar.xz ematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.zip |
Fix migration again
Diffstat (limited to 'js')
-rw-r--r-- | js/vapi-background.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js index 4499e5c..d462bc0 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -355,15 +355,16 @@ vAPI.storage = (function() { if ( !path.isDirectory() ) { throw Error('Should be a directory...'); } - path.append(location.host + '.sqlite'); let path2 = Services.dirsvc.get('ProfD', Ci.nsIFile); path2.append('extension-data'); path2.append(location.host + '.sqlite'); if (path2.exists()) { - path2.moveTo(null, path.leafName); + path2.copyTo(path, location.host+'.sqlite'); } + path.append(location.host + '.sqlite'); + // Open database try { db = Services.storage.openDatabase(path); |