From 3aa355a8b4f54cb338617540e80713f9cfe04bd9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 15 May 2021 15:09:13 -0400 Subject: [PATCH] Add Zotero.DB.path property --- chrome/content/zotero/xpcom/db.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 2797988b56..5914a34d65 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -119,6 +119,12 @@ Zotero.DBConnection = function(dbNameOrPath) { // Public methods // ///////////////////////////////////////////////////////////////// +Zotero.defineProperty(Zotero.DBConnection.prototype, 'path', { + get: function () { + return this._dbPath; + } +}); + /** * Test a read-only connection to the database, throwing any errors that occur