aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-05-17 13:52:43 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-05-17 13:52:43 +0200
commit1c7a34419459054a526e499d05726adf6e01b3d3 (patch)
treed17f00fe9cfe271769d81e484dfa685c80610714 /js
parentcf9314d10b12721c8c928305f298559f21ed7ba5 (diff)
downloadematrix-1c7a34419459054a526e499d05726adf6e01b3d3.tar.lz
ematrix-1c7a34419459054a526e499d05726adf6e01b3d3.tar.xz
ematrix-1c7a34419459054a526e499d05726adf6e01b3d3.zip
Fix migration from old path
uBlock Origin also uses "extension-data" as a directory, so moving the whole thing is a bad move. Instead, simply move the ematrix.sqlite database from one place to another.
Diffstat (limited to 'js')
-rw-r--r--js/vapi-background.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/vapi-background.js b/js/vapi-background.js
index 9088748..4499e5c 100644
--- a/js/vapi-background.js
+++ b/js/vapi-background.js
@@ -355,13 +355,14 @@ 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);
}
- path.append(location.host + '.sqlite');
// Open database
try {