From 1c7a34419459054a526e499d05726adf6e01b3d3 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Fri, 17 May 2019 13:52:43 +0200 Subject: 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. --- js/vapi-background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/vapi-background.js') 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 { -- cgit v1.2.3