mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
001dbefbcf
because it becomes hard to remember where you used them and where not
21 lines
496 B
JavaScript
21 lines
496 B
JavaScript
export const WebPlatform = {
|
|
get minStorageKey() {
|
|
// for indexeddb, we use unsigned 32 bit integers as keys
|
|
return 0;
|
|
},
|
|
|
|
get middleStorageKey() {
|
|
// for indexeddb, we use unsigned 32 bit integers as keys
|
|
return 0x7FFFFFFF;
|
|
},
|
|
|
|
get maxStorageKey() {
|
|
// for indexeddb, we use unsigned 32 bit integers as keys
|
|
return 0xFFFFFFFF;
|
|
},
|
|
|
|
delay(ms) {
|
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
}
|
|
}
|