feat: in-memory fallback for storing user profiles #110
@ -7,7 +7,7 @@ import store from "State/Store";
|
||||
|
||||
class IndexedDb implements UsersDb {
|
||||
isAvailable() {
|
||||
try {
|
||||
const req = "indexedDb" in window && window.indexedDB.open('test', 1)
|
||||
Might as well try to open the SnortDb so we dont have a random "test" db be there forever Might as well try to open the SnortDb so we dont have a random "test" db be there forever
This seems to create an empty database and not store anything inside? This seems to create an empty database and not store anything inside?
I'll go back to using a dummy I'll go back to using a dummy `test` db with version 1 then, wdyt?
Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
My bad, My bad, https://github.com/v0l/snort/pull/110/commits/59878776d5a377e62937d1120c3b73a011a91c95 should fix it
|
||||
const req = "indexedDB" in window && window.indexedDB.open('test', 1)
|
||||
Might as well try to open the SnortDb so we dont have a random "test" db be there forever Might as well try to open the SnortDb so we dont have a random "test" db be there forever
This seems to create an empty database and not store anything inside? This seems to create an empty database and not store anything inside?
I'll go back to using a dummy I'll go back to using a dummy `test` db with version 1 then, wdyt?
Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
My bad, My bad, https://github.com/v0l/snort/pull/110/commits/59878776d5a377e62937d1120c3b73a011a91c95 should fix it
|
||||
return Boolean(req)
|
||||
} catch (error) {
|
||||
return false
|
||||
|
||||
Might as well try to open the SnortDb so we dont have a random "test" db be there forever Might as well try to open the SnortDb so we dont have a random "test" db be there forever
Might as well try to open the SnortDb so we dont have a random "test" db be there forever Might as well try to open the SnortDb so we dont have a random "test" db be there forever
This seems to create an empty database and not store anything inside? This seems to create an empty database and not store anything inside?
This seems to create an empty database and not store anything inside? This seems to create an empty database and not store anything inside?
I'll go back to using a dummy I'll go back to using a dummy `test` db with version 1 then, wdyt?
I'll go back to using a dummy I'll go back to using a dummy `test` db with version 1 then, wdyt?
Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
My bad, My bad, https://github.com/v0l/snort/pull/110/commits/59878776d5a377e62937d1120c3b73a011a91c95 should fix it
My bad, My bad, https://github.com/v0l/snort/pull/110/commits/59878776d5a377e62937d1120c3b73a011a91c95 should fix it
|
Might as well try to open the SnortDb so we dont have a random "test" db be there forever
Might as well try to open the SnortDb so we dont have a random "test" db be there forever
This seems to create an empty database and not store anything inside?
This seems to create an empty database and not store anything inside?
I'll go back to using a dummy
test
db with version 1 then, wdyt?I'll go back to using a dummy
test
db with version 1 then, wdyt?Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
Still doesnt seem to actually use IndexdDb, in logs it says its using indexdb but its not storing anything there
My bad,
59878776d5
should fix itMy bad,
59878776d5
should fix it