aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-background.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-05-17 20:33:26 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-05-17 20:33:26 +0200
commit1313495dc84357caa9392eb19c4c90b18dfcead5 (patch)
treec86d196e7c7f75381bee534f7c6cb81036be83dd /js/vapi-background.js
parent58df025f735e2b15357b0de018a581da6bb3d83b (diff)
downloadematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.tar.lz
ematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.tar.xz
ematrix-1313495dc84357caa9392eb19c4c90b18dfcead5.zip
Fix migration again
Diffstat (limited to 'js/vapi-background.js')
-rw-r--r--js/vapi-background.js5
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);