From 08e1b5aef425090e4dc91978968a97bc5b38e53d Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Mon, 13 May 2019 17:41:19 +0200 Subject: Fix handling of existing data --- js/vapi-background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js') 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'); -- cgit v1.2.3