diff options
author | Alessio Vanni <vannilla@firemail.cc> | 2019-05-15 20:49:51 +0200 |
---|---|---|
committer | Alessio Vanni <vannilla@firemail.cc> | 2019-05-15 20:49:51 +0200 |
commit | cf9314d10b12721c8c928305f298559f21ed7ba5 (patch) | |
tree | 303b6ddcdfa5792776a2e2b7688fdf4eafc45498 /js/vapi-background.js | |
parent | ebf6455cd348834792866891e321b4282fa3a49a (diff) | |
parent | a51744863384896b171fe54e952676ec36df6db0 (diff) | |
download | ematrix-cf9314d10b12721c8c928305f298559f21ed7ba5.tar.lz ematrix-cf9314d10b12721c8c928305f298559f21ed7ba5.tar.xz ematrix-cf9314d10b12721c8c928305f298559f21ed7ba5.zip |
Merge branch 'fix-tld-handling'
Diffstat (limited to 'js/vapi-background.js')
-rw-r--r-- | js/vapi-background.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js index 08a84bc..9088748 100644 --- a/js/vapi-background.js +++ b/js/vapi-background.js @@ -347,14 +347,20 @@ vAPI.storage = (function() { } // Create path - var path = Services.dirsvc.get('ProfD', Ci.nsIFile); - path.append('extension-data'); + let path = Services.dirsvc.get('ProfD', Ci.nsIFile); + path.append('ematrix-data'); if ( !path.exists() ) { path.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt('0774', 8)); } if ( !path.isDirectory() ) { throw Error('Should be a directory...'); } + + let path2 = Services.dirsvc.get('ProfD', Ci.nsIFile); + path2.append('extension-data'); + if (path2.exists()) { + path2.moveTo(null, path.leafName); + } path.append(location.host + '.sqlite'); // Open database |