aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-06-28 17:29:16 -0400
committerGitHub <noreply@github.com>2020-06-28 17:29:16 -0400
commita16a8f53e657596eece7c3eb7c21da4ffc2a0fe7 (patch)
tree9a5ceb91244383682cb3b85238daa268b66e6649 /ext/bg/js
parent441c23bf3be1bc4f14e17ec3956a8c90b1a674e8 (diff)
Rename GenericDatabase to Database (#634)
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/database.js (renamed from ext/bg/js/generic-database.js)2
-rw-r--r--ext/bg/js/dictionary-database.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/generic-database.js b/ext/bg/js/database.js
index a82ad650..96eaa340 100644
--- a/ext/bg/js/generic-database.js
+++ b/ext/bg/js/database.js
@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-class GenericDatabase {
+class Database {
constructor() {
this._db = null;
this._isOpening = false;
diff --git a/ext/bg/js/dictionary-database.js b/ext/bg/js/dictionary-database.js
index c48320cd..671be7a8 100644
--- a/ext/bg/js/dictionary-database.js
+++ b/ext/bg/js/dictionary-database.js
@@ -16,13 +16,13 @@
*/
/* global
- * GenericDatabase
+ * Database
* dictFieldSplit
*/
class DictionaryDatabase {
constructor() {
- this._db = new GenericDatabase();
+ this._db = new Database();
this._dbName = 'dict';
this._schemas = new Map();
}
@@ -118,7 +118,7 @@ class DictionaryDatabase {
if (this._db.isOpen()) {
this._db.close();
}
- await GenericDatabase.deleteDatabase(this._dbName);
+ await Database.deleteDatabase(this._dbName);
await this.prepare();
}