aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-background.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-05-13 17:41:19 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-05-13 17:41:19 +0200
commit08e1b5aef425090e4dc91978968a97bc5b38e53d (patch)
tree9253912598c781d615b6f8621167674508ab5c9c /js/vapi-background.js
parent8ef453fe1ac8d80f90216de188e4b98df70dab22 (diff)
downloadematrix-08e1b5aef425090e4dc91978968a97bc5b38e53d.tar.lz
ematrix-08e1b5aef425090e4dc91978968a97bc5b38e53d.tar.xz
ematrix-08e1b5aef425090e4dc91978968a97bc5b38e53d.zip
Fix handling of existing data
Diffstat (limited to 'js/vapi-background.js')
-rw-r--r--js/vapi-background.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js
index 09a5842..67d540e 100644
--- a/js/vapi-background.js
+++ b/js/vapi-background.js
@@ -359,8 +359,7 @@ vAPI.storage = (function() {
let path2 = Services.dirsvc.get('ProfD', Ci.nsIFile);
path2.append('extension-data');
if (path2.exists()) {
- path2.append(location.host + '.sqlite');
- path2.copyTo(path, location.host + '.sqlite');
+ path2.moveTo(null, path.leafName);
}
path.append(location.host + '.sqlite');