@cocreate/indexeddb 1.13.1 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.13.2](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.13.1...v1.13.2) (2023-08-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update status logic ([2eee57a](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/2eee57afa24e3628d7a97f745d7694db8315b3c3))
7
+
1
8
  ## [1.13.1](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.13.0...v1.13.1) (2023-08-21)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/indexeddb",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "A simple indexeddb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "indexeddb",
package/src/index.js CHANGED
@@ -46,10 +46,11 @@ function setStatus(value) {
46
46
  window.CoCreateConfig.indexeddb = value;
47
47
  else
48
48
  window.CoCreateConfig = { indexeddb: value };
49
+
49
50
  if (!value) {
50
51
  indexedDbFunction = indexedDb
51
52
  indexedDb = value;
52
- } else {
53
+ } else if (!indexedDb) {
53
54
  indexedDb = indexedDbFunction
54
55
  indexedDbFunction = true
55
56
  }