isobit-ui 0.0.332 → 0.0.336
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/dist/index.js +3 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.336
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1936,14 +1936,11 @@ var script$d = {
|
|
|
1936
1936
|
if (storage != null) {
|
|
1937
1937
|
var datj;
|
|
1938
1938
|
return _invoke$1(function () {
|
|
1939
|
-
if (window._.
|
|
1940
|
-
alert('SI IDB');
|
|
1939
|
+
if (window._.db) {
|
|
1941
1940
|
return _await$1(me.getStoredList(storage), function (_me$getStoredList) {
|
|
1942
1941
|
datj = _me$getStoredList;
|
|
1943
1942
|
});
|
|
1944
1943
|
} else {
|
|
1945
|
-
alert('NO IDB');
|
|
1946
|
-
|
|
1947
1944
|
try {
|
|
1948
1945
|
var vvv = localStorage.getItem(storage);
|
|
1949
1946
|
if (vvv) datj = JSON.parse(vvv);
|
|
@@ -6216,7 +6213,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6216
6213
|
},
|
|
6217
6214
|
getStoredList: function getStoredList(storage, tt) {
|
|
6218
6215
|
try {
|
|
6219
|
-
if (window.
|
|
6216
|
+
if (window._.db) {
|
|
6220
6217
|
var p = new Promise(function (resolve) {
|
|
6221
6218
|
var t = tt ? window._.db.transaction(storage, tt) : window._.db.transaction(storage),
|
|
6222
6219
|
objectStore = t.objectStore(storage); //,d=[];
|