diff --git a/content/ca-archive.js b/content/ca-archive.js index 341c761..7fdca8c 100644 --- a/content/ca-archive.js +++ b/content/ca-archive.js @@ -2,7 +2,7 @@ (function () { var Cu = Components.utils; - let dbname = "ca-archive-17110901.sqlite"; let ver = "17110901"; + let dbname = "ca-archive-17110901.sqlite"; let ver = "17110902"; Cu.import("chrome://ca-archive/content/db.js" + "?" + ver); if (!DB.openDB(dbname, document)) { diff --git a/content/db.js b/content/db.js index c653fdd..c86f9df 100644 --- a/content/db.js +++ b/content/db.js @@ -60,7 +60,7 @@ let DB = { if (dir.exists()) { dir.remove(true); } - dir.create(1, FileUtils.PERMS_FILE); + dir.create(Ci.nsIFile.DIRECTORY_TYPE, FileUtils.PERMS_DIRECTORY); tmpFile.moveTo(dir, dbname); showMessage(document, "Database has been processed successfully!", "db-warning ok"); showMessage(document, "Please reload the page.", "db-warning ok");