Add Zotero.DB.path property
This commit is contained in:
parent
146e1af189
commit
3aa355a8b4
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue