Add Zotero.DB.path property

This commit is contained in:
Dan Stillman 2021-05-15 15:09:13 -04:00
parent 146e1af189
commit 3aa355a8b4

View file

@ -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