aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to '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);