diff options
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 |