summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-30 20:27:44 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-03-30 20:28:44 -0400
commit8095d9138c413f27b26c9ccba2ca2ae9762707f3 (patch)
treea3b1b125802aa51adf3a60d0d0355c4eed5c0788
parent1a8bbf32d580173f5997754f6b36015ae212c9f9 (diff)
Add isPrepared
-rw-r--r--ext/bg/js/database.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index effa50a6..269ad57e 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -110,6 +110,10 @@ class Database {
this.db = null;
}
+ isPrepared() {
+ return this.db !== null;
+ }
+
async purge() {
this._validate();